[ARVADOS] created: 771ee3aac1a6cd58ed5fe701a1cad9b64e5f99b2

git at public.curoverse.com git at public.curoverse.com
Tue Apr 14 10:30:40 EDT 2015


        at  771ee3aac1a6cd58ed5fe701a1cad9b64e5f99b2 (commit)


commit 771ee3aac1a6cd58ed5fe701a1cad9b64e5f99b2
Author: Brett Smith <brett at curoverse.com>
Date:   Tue Apr 14 10:30:34 2015 -0400

    5642: crunch-job keeps $tasks_this_level in sync with new tasks.
    
    We previously tried to accomplish this by reculculating the value
    before every THISROUND
    loop (bae652c25653d21aece17e7137b375c0471b484e), but that broke the
    loop itself (6261cf9003ec37622d38a3c40d94a75eff397922).  Instead,
    stick with calculating an initial value in ONELEVEL, and update
    $tasks_this_level if any new tasks appear while we're working.

diff --git a/sdk/cli/bin/crunch-job b/sdk/cli/bin/crunch-job
index 6242484..2a1747c 100755
--- a/sdk/cli/bin/crunch-job
+++ b/sdk/cli/bin/crunch-job
@@ -1119,6 +1119,7 @@ sub reapchildren
       };
       push @jobstep, $jobstep;
       push @jobstep_todo, $#jobstep;
+      $tasks_this_level++ if ($jobstep->{level} == $level);
     }
   }
 

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list