Commit 430eec3a authored by Leo Gordon's avatar Leo Gordon
Browse files

PASSED_ON is a special static state

parent ec9aa85f
...@@ -346,10 +346,10 @@ sub fetch_failed_workers { ...@@ -346,10 +346,10 @@ sub fetch_failed_workers {
sub fetch_dead_workers_with_jobs { sub fetch_dead_workers_with_jobs {
my $self = shift; my $self = shift;
# select h.worker_id from hive h, analysis_job WHERE h.worker_id=analysis_job.worker_id AND h.cause_of_death!='' AND analysis_job.status not in ('DONE', 'READY','FAILED') group by h.worker_id # select h.worker_id from hive h, analysis_job WHERE h.worker_id=analysis_job.worker_id AND h.cause_of_death!='' AND analysis_job.status not in ('DONE', 'READY','FAILED', 'PASSED_ON') group by h.worker_id
my $constraint = "h.cause_of_death!='' "; my $constraint = "h.cause_of_death!='' ";
my $join = [[['analysis_job', 'j'], " h.worker_id=j.worker_id AND j.status NOT IN ('DONE', 'READY', 'FAILED') GROUP BY h.worker_id"]]; my $join = [[['analysis_job', 'j'], " h.worker_id=j.worker_id AND j.status NOT IN ('DONE', 'READY', 'FAILED', 'PASSED_ON') GROUP BY h.worker_id"]];
return $self->_generic_fetch($constraint, $join); return $self->_generic_fetch($constraint, $join);
} }
......
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