[ARVADOS] updated: d533fffba8615a3e4d370ed1f7cdd810cdb4eee3

git at public.curoverse.com git at public.curoverse.com
Thu Feb 20 14:24:04 EST 2014


Summary of changes:
 sdk/python/arvados/__init__.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

       via  d533fffba8615a3e4d370ed1f7cdd810cdb4eee3 (commit)
      from  5f64ae1ff9649c01bc95ec86c26624730f9de724 (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 d533fffba8615a3e4d370ed1f7cdd810cdb4eee3
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Feb 20 14:25:12 2014 -0500

    Added get_job_param_mount() and get_task_param_mount()

diff --git a/sdk/python/arvados/__init__.py b/sdk/python/arvados/__init__.py
index b165412..f1444f0 100644
--- a/sdk/python/arvados/__init__.py
+++ b/sdk/python/arvados/__init__.py
@@ -59,6 +59,12 @@ def current_job():
 def getjobparam(*args):
     return current_job()['script_parameters'].get(*args)
 
+def get_job_param_mount(*args):
+    return os.join(os.environ['TASK_KEEPMOUNT'], current_job()['script_parameters'].get(*args))
+
+def get_task_param_mount(*args):
+    return os.join(os.environ['TASK_KEEPMOUNT'], current_task()['parameters'].get(*args))
+
 class JobTask(object):
     def __init__(self, parameters=dict(), runtime_constraints=dict()):
         print "init jobtask %s %s" % (parameters, runtime_constraints)

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list