Skip to content
Snippets Groups Projects
Commit 46753055 authored by Brian Christiansen's avatar Brian Christiansen
Browse files

Ensure that db only adds step states and not flags.

parent 16484ef3
No related branches found
No related tags found
No related merge requests found
......@@ -1166,7 +1166,7 @@ extern int as_mysql_step_complete(mysql_conn_t *mysql_conn,
}
exit_code = step_ptr->exit_code;
comp_status = step_ptr->state;
comp_status = step_ptr->state & JOB_STATE_BASE;
if (comp_status < JOB_COMPLETE) {
if (WIFSIGNALED(exit_code)) {
comp_status = JOB_CANCELLED;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment