We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If onerror == fail and the last command in a job fails, the job scheduler doesn't count it as a failure.
onerror == fail
This is a logic error in DefaultJobScheduler.java:
DefaultJobScheduler.java
if(au.getAction() == AgentUpdate.Action.Stop) { if(cr.index < maxIdx || cr.status != CommandResult.CommandResultStatus.SUCCESS) { /* A command has failed and caused the job to stop. */ ops.updateJobFinished(att, true); } else { /* We've finished successfully. */ ops.updateJobFinished(att, false); } }
The text was updated successfully, but these errors were encountered:
There's no real way to fix this as the CommandResult structures look the same regardless of the onerror status.
CommandResult
onerror
Sorry, something went wrong.
Current workaround is to add exec /bin/true as the final command in a planfile
exec /bin/true
269c5b4
No branches or pull requests
If
onerror == fail
and the last command in a job fails, the job scheduler doesn't count it as a failure.This is a logic error in
DefaultJobScheduler.java
:The text was updated successfully, but these errors were encountered: