-
Notifications
You must be signed in to change notification settings - Fork 29
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
db: Add option to capture canceled jobs #1534
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.
LGTM
Need to run a test to verify that wakebox timed out jobs show up as canceled then I can land this |
rm -f wake.db | ||
|
||
# Use || true to ignore the expected non-0 return from timeout | ||
timeout 1 ${WAKE} test || true |
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.
We don't need test Unit
here?
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.
Nope. test
is exported as a CLI function so it expects a List String
and with nothing is specified then Nil
is passed
bool is_db_inspection = | ||
!clo.job_ids.empty() || !clo.output_files.empty() || !clo.input_files.empty() || | ||
!clo.labels.empty() || !clo.tags.empty() || clo.last_use || clo.last_exe || clo.failed || | ||
clo.tagdag || clo.timeline || clo.taguri || clo.simple || clo.simple_timeline || clo.canceled; |
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.
Do we have a linter for C++?
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.
Yep, just for formatting though. clang-format
(version 12.0.X)
Adds
--canceled
which captures jobs that were canceled in the last build (usually by ctrl+c). This works similarly to--failed
in that it will forget the list of canceled jobs after the next wake invocation.