[ARVADOS] updated: faf124cf4ba8170fc94ce8ea8670919fab633afa

git at public.curoverse.com git at public.curoverse.com
Sun Oct 5 11:50:56 EDT 2014


Summary of changes:
 sdk/cli/bin/crunch-job | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

       via  faf124cf4ba8170fc94ce8ea8670919fab633afa (commit)
      from  eb8ae85898833a302b31f3f93ef4cfdf5c5a764d (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 faf124cf4ba8170fc94ce8ea8670919fab633afa
Author: Brett Smith <brett at curoverse.com>
Date:   Sun Oct 5 11:50:53 2014 -0400

    4012: crunch-job retry_count handles "no tasks yet" better.

diff --git a/sdk/cli/bin/crunch-job b/sdk/cli/bin/crunch-job
index bed94d3..80e76ee 100755
--- a/sdk/cli/bin/crunch-job
+++ b/sdk/cli/bin/crunch-job
@@ -1522,9 +1522,11 @@ sub retry_count {
   # Calculate the number of times an operation should be retried,
   # assuming exponential backoff, and that we're willing to retry as
   # long as tasks have been running.  Enforce a minimum of 3 retries.
-  my $endtime = $jobstep[-1]->{finishtime};
-  my $starttime = $jobstep[0]->{starttime};
-  my $timediff;
+  my ($starttime, $endtime, $timediff);
+  if (@jobstep) {
+    $starttime = $jobstep[0]->{starttime};
+    $endtime = $jobstep[-1]->{finishtime};
+  }
   if (!defined($starttime)) {
     $timediff = 0;
   } elsif (!defined($endtime)) {

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list