X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fcbb743e3de63e93280f2fbeedea49f98430d26f..090b515aa10dba597b20a96797f17688f582a529:/services/api/lib/crunch_dispatch.rb diff --git a/services/api/lib/crunch_dispatch.rb b/services/api/lib/crunch_dispatch.rb index 06a8a4b633..131386d765 100644 --- a/services/api/lib/crunch_dispatch.rb +++ b/services/api/lib/crunch_dispatch.rb @@ -637,7 +637,7 @@ class CrunchDispatch jobrecord = Job.find_by_uuid(job_done.uuid) - if exit_status == EXIT_RETRY_UNLOCKED or (exit_tempfail and @job_retry_counts[jobrecord.uuid]) + if exit_status == EXIT_RETRY_UNLOCKED or (exit_tempfail and @job_retry_counts.include? jobrecord.uuid) # The job failed because all of the nodes allocated to it # failed. Only this crunch-dispatch process can retry the job: # it's already locked, and there's no way to put it back in the