[ARVADOS] created: 7e4a19533c446817c8af4f276c72b5399ecf4959
git at public.curoverse.com
git at public.curoverse.com
Thu Dec 4 09:54:42 EST 2014
at 7e4a19533c446817c8af4f276c72b5399ecf4959 (commit)
commit 7e4a19533c446817c8af4f276c72b5399ecf4959
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Thu Dec 4 09:55:06 2014 -0500
Touch the "crunch_refresh_trigger" file when the state changes. This notifies
all crunch-job instances to check the cancelled and state flags, so if a
running job changes state unexpectedly, it will be treated as a cancellation. refs #4314
diff --git a/services/api/app/models/job.rb b/services/api/app/models/job.rb
index 4a464f5..b41df63 100644
--- a/services/api/app/models/job.rb
+++ b/services/api/app/models/job.rb
@@ -310,6 +310,8 @@ class Job < ArvadosModel
end
self.running ||= false # Default to false instead of nil.
+ @need_crunch_dispatch_trigger = true
+
true
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list