Commit 36d8c0be authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: also release jobs that were in PRE_CLEANUP or POST_CLEANUP states

parent 41457f6a
......@@ -207,7 +207,7 @@ sub fetch_all_failed_jobs {
sub fetch_all_incomplete_jobs_by_worker_id {
my ($self, $worker_id) = @_;
my $constraint = "j.status IN ('COMPILATION','FETCH_INPUT','RUN','WRITE_OUTPUT') AND j.worker_id='$worker_id'";
my $constraint = "j.status IN ('COMPILATION','PRE_CLEANUP','FETCH_INPUT','RUN','WRITE_OUTPUT','POST_CLEANUP') AND j.worker_id='$worker_id'";
return $self->_generic_fetch($constraint);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment