-
Notifications
You must be signed in to change notification settings - Fork 592
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
Don't require python to just instantiate tool classes. #8128
Conversation
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.
@cmnbroad I would the initializers to onStartup with the pythonPackage check unless there's a reason not to that I'm missing.
@@ -140,6 +139,9 @@ protected void onStartup() { | |||
|
|||
@Override | |||
protected Object doWork() { | |||
// Start the Python executor. This does not actually start the Python process, but fails if python can't be located |
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.
It seems like this should be in onStartup.
@@ -127,6 +126,9 @@ protected void onStartup() { | |||
|
|||
@Override | |||
protected Object doWork() { | |||
// Start the Python executor. This does not actually start the Python process, but fails if python can't be located |
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.
I think this should probably go in onStartup
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #8128 +/- ##
================================================
+ Coverage 46.436% 86.641% +40.205%
- Complexity 26473 38958 +12485
================================================
Files 2336 2336
Lines 182709 182731 +22
Branches 20060 20067 +7
================================================
+ Hits 84843 158320 +73477
+ Misses 91960 17367 -74593
- Partials 5906 7044 +1138
|
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.
👍
The CNN tools launch python immediately even when they're just instantiated, rather than waiting until the tool actually starts executing. This can cause some build tasks (gatkDoc, gatkWDLGen, etc.) to fail if python isn't available.