Commit 4133e53a authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: maintain correct counters after attempt failure

parent f27d2825
......@@ -554,8 +554,14 @@ sub release_and_age_job {
WHERE job_id=$job_id
} );
# FIXME: move the decision making completely to the API side and so avoid the potential race condition.
my $job = $self->fetch_by_dbID( $job_id );
$self->db->get_AnalysisStatsAdaptor->increment_a_counter( ($job->status eq 'FAILED') ? 'failed_job_count' : 'ready_job_count', 1, $job->analysis_id );
=head2 gc_dataflow
Description: perform automatic dataflow from a dead job that overused resources if a corresponding dataflow rule was provided
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