[ARVADOS] updated: 4a577dc5239b0c5847ffc42247ee0c43dca6e5ef

git at public.curoverse.com git at public.curoverse.com
Mon Sep 22 12:04:35 EDT 2014


Summary of changes:
 services/api/app/models/job.rb | 2 ++
 1 file changed, 2 insertions(+)

       via  4a577dc5239b0c5847ffc42247ee0c43dca6e5ef (commit)
      from  9dca897db16ac33730fcf98c03513dd2b71b6017 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 4a577dc5239b0c5847ffc42247ee0c43dca6e5ef
Author: Ward Vandewege <ward at curoverse.com>
Date:   Mon Sep 22 12:04:10 2014 -0400

    Jobs in any other state should be failed.
    
    refs #3898

diff --git a/services/api/app/models/job.rb b/services/api/app/models/job.rb
index f8d5ed4..16c19bb 100644
--- a/services/api/app/models/job.rb
+++ b/services/api/app/models/job.rb
@@ -333,6 +333,8 @@ class Job < ArvadosModel
       elsif !self.started_at && !self.cancelled_at && self.is_locked_by_uuid
         # race condition for jobs that have just been grabbed by crunch-dispatch but haven't been marked as started yet...
         self.state = Failed
+      else
+        self.state = Failed
       end
     end
  

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list