Commit d09dc214 authored by Jessica Severin's avatar Jessica Severin
Browse files

Since the workers now die (as original design) when the job fails

there is no longer the possibility that a worker might accidentally
claim the job it just failed on so there is no longer a need to check
the hive_id of the job when claiming. Removed check for hive_id
parent 8519f269
......@@ -473,8 +473,7 @@ sub claim_jobs_for_worker {
" , hive_id='". $worker->hive_id ."'".
" , status='CLAIMED'".
" WHERE job_claim='' and status='READY'".
" AND analysis_id='" .$worker->analysis->dbID. "'" .
" AND hive_id != " . $worker->hive_id;
" AND analysis_id='" .$worker->analysis->dbID. "'";
my $sql_virgin = $sql_base .
" AND retry_count=0".
......
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