From: Peter Amstutz Date: Thu, 20 Mar 2014 19:32:10 +0000 (-0400) Subject: Silly git staging. X-Git-Tag: 1.1.0~2690^2~19^2~27^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/aa19561b8139abbd27cea7bb88ec600b3df16de1 Silly git staging. --- diff --git a/services/api/script/crunch-dispatch.rb b/services/api/script/crunch-dispatch.rb index 3635846030..9eb1c28cb2 100755 --- a/services/api/script/crunch-dispatch.rb +++ b/services/api/script/crunch-dispatch.rb @@ -309,7 +309,10 @@ class Dispatcher j_done[:wait_thr].value jobrecord = Job.find_by_uuid(job_done.uuid) - jobrecord.assert_finished + jobrecord.running = false + jobrecord.finished_at ||= Time.now, + # Don't set 'jobrecord.success = false' because if the job failed to run due to an + # issue with crunch-job or slurm, we want the job to stay in the queue. jobrecord.save! # Invalidate the per-job auth token