Skip to content
Snippets Groups Projects
Commit 30b5773b authored by Jessica Severin's avatar Jessica Severin
Browse files

with new system to allow jobs to be 'failed' without killing the worker,

I needed to add in a check to prevent the worker from grabbing the same
job back and trying to run it again.  The retry works best when the job is
run on a different machine at a different moment in time (ie a different
hive_id).  This randomizes the run environment.
parent 259b97dc
No related branches found
No related tags found
No related merge requests found
......@@ -454,7 +454,8 @@ 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 analysis_id='" .$worker->analysis->dbID. "'" .
" AND hive_id != " . $worker->hive_id;
my $sql_virgin = $sql_base .
" AND retry_count=0".
......
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