[ARVADOS] created: e2f3466f502865b79da7f97af08943db5af4ff45

Git user git at public.curoverse.com
Wed Sep 28 16:30:38 EDT 2016


        at  e2f3466f502865b79da7f97af08943db5af4ff45 (commit)


commit e2f3466f502865b79da7f97af08943db5af4ff45
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Wed Sep 28 16:26:45 2016 -0400

    10151: Ensure that job_order_object is normalized and Directory listings are enumerated.

diff --git a/crunch_scripts/cwl-runner b/crunch_scripts/cwl-runner
index eec5aad..89699f5 100755
--- a/crunch_scripts/cwl-runner
+++ b/crunch_scripts/cwl-runner
@@ -12,15 +12,16 @@ import arvados
 import arvados_cwl
 import arvados.collection
 import arvados.util
-from cwltool.process import shortname
 import cwltool.main
 import logging
 import os
 import json
 import argparse
 import re
+import functools
+
 from arvados.api import OrderedJsonModel
-from cwltool.process import adjustFileObjs, adjustDirObjs
+from cwltool.process import shortname, adjustFileObjs, adjustDirObjs, getListing, normalizeFilesDirs
 from cwltool.load_tool import load_tool
 
 # Print package versions
@@ -53,6 +54,8 @@ try:
 
     adjustFileObjs(job_order_object, keeppathObj)
     adjustDirObjs(job_order_object, keeppathObj)
+    normalizeFilesDirs(job_order_object)
+    adjustDirObjs(job_order_object, functools.partial(getListing, arvados_cwl.fsaccess.CollectionFsAccess("", api_client=api)))
 
     runner = arvados_cwl.ArvCwlRunner(api_client=arvados.api('v1', model=OrderedJsonModel()))
 

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list