Skip to content

Commit

Permalink
added database configured signature generation tool + refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
twobraids committed Jun 18, 2013
1 parent 3e29285 commit 2b116a0
Show file tree
Hide file tree
Showing 4 changed files with 634 additions and 305 deletions.
11 changes: 10 additions & 1 deletion socorro/app/fetch_transform_save_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ class FetchTransformSaveApp(App):
from_string_converter=class_converter
)

###########################################################################
### TODO: add a feature where clients of this class may register a waiting
### function. The MainThread will run all the registered waiting
### functions at their configured interval. A first application of this
### feature will be to allow periodic reloading of config data from a
### database. Specifically, the skip list rules could be reloaded without
### having to restart the processor.
###########################################################################

#--------------------------------------------------------------------------
def __init__(self, config):
super(FetchTransformSaveApp, self).__init__(config)
Expand Down Expand Up @@ -139,7 +148,7 @@ def transform(self, crash_id):
str(x),
exc_info=True
)


#--------------------------------------------------------------------------
def quit_check(self):
Expand Down
7 changes: 7 additions & 0 deletions socorro/processor/processor_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ class ProcessorApp(FetchTransformSaveApp):
from_string_converter=class_converter
)

###########################################################################
### TODO: implement an __init__ and a waiting func. The waiting func
### will take registrations of periodic things to do over some time
### interval. the first periodic thing is the rereading of the
### signature generation stuff from the database.
###########################################################################

#--------------------------------------------------------------------------
def source_iterator(self):
"""this iterator yields individual crash_ids from the source
Expand Down
Loading

0 comments on commit 2b116a0

Please sign in to comment.