Commit 89b77197 authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: only limit buried-in-haste workers to really dead ones

parent 18fd495f
......@@ -475,7 +475,7 @@ sub fetch_overdue_workers {
sub fetch_all_dead_workers_with_jobs {
my $self = shift;
return $self->fetch_all( "JOIN job j USING(worker_id) WHERE j.status NOT IN ('DONE', 'READY', 'FAILED', 'PASSED_ON') GROUP BY worker_id" );
return $self->fetch_all( "JOIN job j USING(worker_id) WHERE w.status='DEAD' AND j.status NOT IN ('DONE', 'READY', 'FAILED', 'PASSED_ON') GROUP BY worker_id" );
}
......
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