Commit 32789a98 authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix

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