-
Notifications
You must be signed in to change notification settings - Fork 81
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
hasActiveWorkflow should consider workflows in state PENDING and RUNNING #115
Conversation
2f093c8
to
6edbfb2
Compare
29ac24c
to
007a6f7
Compare
Codecov Report
@@ Coverage Diff @@
## master #115 +/- ##
=======================================
Coverage 40.90% 40.90%
=======================================
Files 40 40
Lines 2056 2056
=======================================
Hits 841 841
Misses 1130 1130
Partials 85 85
Continue to review full report at Codecov.
|
007a6f7
to
9fb00dd
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
Signed-off-by: James W. Brinkerhoff <jwb@paravolve.net>
Signed-off-by: James W. Brinkerhoff <jwb@paravolve.net>
9fb00dd
to
f701c42
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
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
Always booting to osie&tink-worker if a workflow is already started is ok.
@mmlb / @splaspood I have opened a bug with reference to this commit #125. |
Description
When checking for the status of a 'job' boots currently only considers PENDING workflows. This change makes it consider RUNNING workflows to be 'active' as well.
Why is this needed
During workflow execution we pass status updates back to our central API by way of boots. As-is, the hasActiveWorkflow function will reject those status updates as it only considers 'PENDING' workflows to be active.