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
...@@ -454,7 +454,8 @@ sub claim_jobs_for_worker { ...@@ -454,7 +454,8 @@ sub claim_jobs_for_worker {
" , hive_id='". $worker->hive_id ."'". " , hive_id='". $worker->hive_id ."'".
" , status='CLAIMED'". " , status='CLAIMED'".
" WHERE job_claim='' and status='READY'". " 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 . my $sql_virgin = $sql_base .
" AND retry_count=0". " 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