[ARVADOS] updated: 1f4000e57a6c0e82ed2d7de311f0137833006120

git at public.curoverse.com git at public.curoverse.com
Thu Sep 25 14:09:45 EDT 2014


Summary of changes:
 sdk/cli/bin/crunch-job | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  1f4000e57a6c0e82ed2d7de311f0137833006120 (commit)
      from  375c4ecb4d0b2c4d71df83f2d858d1ed3e78fd5d (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 1f4000e57a6c0e82ed2d7de311f0137833006120
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Sep 25 14:09:40 2014 -0400

    3859: Use eval {} to catch error when locking the job.

diff --git a/sdk/cli/bin/crunch-job b/sdk/cli/bin/crunch-job
index 6f5a699..4fe12c9 100755
--- a/sdk/cli/bin/crunch-job
+++ b/sdk/cli/bin/crunch-job
@@ -282,7 +282,7 @@ my $jobmanager_id;
 if ($job_has_uuid)
 {
   # Claim this job, and make sure nobody else does
-  unless ($arv->{'jobs'}->{'lock'}->execute('uuid' => $Job->{'uuid'})) {
+  if (eval {$arv->{'jobs'}->{'lock'}->execute('uuid' => $Job->{'uuid'})}) {
     Log(undef, "Error while updating / locking job, exiting ".EX_TEMPFAIL);
     exit EX_TEMPFAIL;    
   };

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list