[ARVADOS] updated: c75a4bb16b2ae143023a001ddb92ce175c813c11

git at public.curoverse.com git at public.curoverse.com
Wed Jul 30 14:13:29 EDT 2014


Summary of changes:
 crunch_scripts/run-command | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

       via  c75a4bb16b2ae143023a001ddb92ce175c813c11 (commit)
      from  cd8865242a72db92cb2c6a269ca209e06b0a31ef (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 c75a4bb16b2ae143023a001ddb92ce175c813c11
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Wed Jul 30 14:10:20 2014 -0400

    Fix $(node.cores)

diff --git a/crunch_scripts/run-command b/crunch_scripts/run-command
index a92329a..4b686ac 100755
--- a/crunch_scripts/run-command
+++ b/crunch_scripts/run-command
@@ -14,6 +14,7 @@ import stat
 import copy
 import traceback
 import pprint
+import multiprocessing
 
 os.umask(0077)
 
@@ -44,7 +45,7 @@ def sub_tmpdir(v):
     return os.path.join(arvados.current_task().tmpdir, 'tmpdir')
 
 def sub_cores(v):
-     return os.environ['CRUNCH_NODE_SLOTS']
+     return str(multiprocessing.cpu_count())
 
 def sub_jobid(v):
      return os.environ['JOB_UUID']

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list