[ARVADOS] updated: 13254dc054d9f2f50cc0c5f878f6ecfb6fcbed7f

git at public.curoverse.com git at public.curoverse.com
Thu Jun 12 13:59:11 EDT 2014


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

       via  13254dc054d9f2f50cc0c5f878f6ecfb6fcbed7f (commit)
      from  40cedbe09d7e8fe3223ebe3da14d7d6983b22df1 (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 13254dc054d9f2f50cc0c5f878f6ecfb6fcbed7f
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Jun 12 13:58:35 2014 -0400

    Runs crunch script using "stdbuf -o0 -e0" so stdout and stderr are unbuffered,
    solves problem of stdout showing up out of order and with incorrect time stamps
    in logs.  no issue #

diff --git a/sdk/cli/bin/crunch-job b/sdk/cli/bin/crunch-job
index 167d3dd..e54b312 100755
--- a/sdk/cli/bin/crunch-job
+++ b/sdk/cli/bin/crunch-job
@@ -663,6 +663,7 @@ for (my $todo_ptr = 0; $todo_ptr <= $#jobstep_todo; $todo_ptr ++)
     } else {
       $command .= "crunchstat -cgroup-path=/sys/fs/cgroup "
     }
+    $command .= "stdbuf -o0 -e0 ";
     $command .= "$ENV{CRUNCH_SRC}/crunch_scripts/" . $Job->{"script"};
     my @execargs = ('bash', '-c', $command);
     srun (\@srunargs, \@execargs, undef, $build_script_to_send);

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list