[ARVADOS] updated: 883322d0ad56aba5b6aa6ffc2bc67d8c30e3f2a0
git at public.curoverse.com
git at public.curoverse.com
Wed Nov 18 15:30:11 EST 2015
Summary of changes:
sdk/cli/bin/crunch-job | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
via 883322d0ad56aba5b6aa6ffc2bc67d8c30e3f2a0 (commit)
from 6c40b57dad64bea44694dd5cafd719f0338dd745 (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 883322d0ad56aba5b6aa6ffc2bc67d8c30e3f2a0
Author: Brett Smith <brett at curoverse.com>
Date: Wed Nov 18 15:30:09 2015 -0500
6923: crunch-job reports PySDK version with minimal bootstrapping.
diff --git a/sdk/cli/bin/crunch-job b/sdk/cli/bin/crunch-job
index 3280f7b..36a9034 100755
--- a/sdk/cli/bin/crunch-job
+++ b/sdk/cli/bin/crunch-job
@@ -962,7 +962,10 @@ for (my $todo_ptr = 0; $todo_ptr <= $#jobstep_todo; $todo_ptr ++)
$command .= $stdbuf;
$command .= "perl - \Q$ENV{CRUNCH_SRC}/crunch_scripts/$Job->{script}\E";
} else {
- $command .= "/bin/sh -c \'mkdir -p \"$ENV{JOB_WORK}\" \"$ENV{TASK_WORK}\" && " .
+ $command .= "/bin/sh -c \'python -c " .
+ '"from pkg_resources import get_distribution as get; print \"Using Arvados SDK version\", get(\"arvados-python-client\").version"' .
+ ">&2 2>/dev/null; " .
+ "mkdir -p \"$ENV{JOB_WORK}\" \"$ENV{TASK_WORK}\" && " .
"if which stdbuf >/dev/null ; then " .
" exec $stdbuf \Q$ENV{CRUNCH_SRC}/crunch_scripts/$Job->{script}\E ;" .
" else " .
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list