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

reset_job_by_dbID now also resets retry_count and hive_id which is needed

when debugging an analysis which fails and would increment the retry_count.
parent ddbb2ad2
......@@ -534,7 +534,7 @@ sub reset_job_by_dbID {
my ($sql, $sth);
#first just reset the claimed jobs, these don't need a retry_count index increment
$sql = "UPDATE analysis_job SET job_claim='', status='READY' WHERE analysis_job_id=?";
$sql = "UPDATE analysis_job SET hive_id=0, retry_count=0, job_claim='', status='READY' WHERE analysis_job_id=?";
$sth = $self->prepare($sql);
$sth->execute($analysis_job_id);
$sth->finish;
......
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