-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial commit for new runtime and base class #360
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #360 +/- ##
==========================================
- Coverage 78.73% 73.60% -5.14%
==========================================
Files 29 33 +4
Lines 2634 2830 +196
==========================================
+ Hits 2074 2083 +9
- Misses 560 747 +187
|
The idea here is to split the responsibilities of the current base class into two: A runtime and an extractor. The runtime is responsible for parsing command line arguments, loading config files and so on, before spawning the extractor in a separate process. The runtime will automatically restart the extractor if it crashes, but can also be asked by the extractor to restart it - for example after a config change. The extractor class is then only responsible for running the extractor application itself, making it much cleaner.
96bdefd
to
1994737
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The idea here is to split the responsibilities of the current base class into two: A runtime and an extractor.
The runtime is responsible for parsing command line arguments, loading config files and so on, before spawning the extractor in a separate process. The runtime will automatically restart the extractor if it crashes, but can also be asked by the extractor to restart it - for example after a config change.
The extractor class is then only responsible for running the extractor application itself, making it much cleaner.