2882: Explicit polling frequency
authorPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 3 Jun 2014 20:10:29 +0000 (16:10 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 3 Jun 2014 20:10:29 +0000 (16:10 -0400)
sdk/cli/bin/crunch-job

index da005a3884a2b984c185d9134576fefe71f234aa..5fa5f2bbbafc27a4dc07392da9cf488c778c46a3 100755 (executable)
@@ -640,7 +640,7 @@ for (my $todo_ptr = 0; $todo_ptr <= $#jobstep_todo; $todo_ptr ++)
     $command .= "&& exec arv-mount --allow-other $ENV{TASK_KEEPMOUNT} --exec ";
     if ($docker_image)
     {
-      $command .= "crunchstat -cgroup-parent=/sys/fs/cgroup/lxc -cgroup-cid=$ENV{TASK_WORK}/docker.cid ";
+      $command .= "crunchstat -cgroup-parent=/sys/fs/cgroup/lxc -cgroup-cid=$ENV{TASK_WORK}/docker.cid -poll=1000 ";
       $command .= "$docker_bin run -i -a stdin -a stdout -a stderr -cidfile=$ENV{TASK_WORK}/docker.cid ";
       # Dynamically configure the container to use the host system as its
       # DNS server.  Get the host's global addresses from the ip command,