X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/12e22cbf3bbf047c001624be54ec802999bb5c1e..e892c7ee96f28bef7d5b2a9314eb9549ee56634d:/sdk/cwl/arvados_cwl/arvjob.py?ds=sidebyside diff --git a/sdk/cwl/arvados_cwl/arvjob.py b/sdk/cwl/arvados_cwl/arvjob.py index c7345b088d..8b1a934683 100644 --- a/sdk/cwl/arvados_cwl/arvjob.py +++ b/sdk/cwl/arvados_cwl/arvjob.py @@ -97,7 +97,13 @@ class ArvadosJob(object): runtime_req, _ = get_feature(self, "http://arvados.org/cwl#RuntimeConstraints") if runtime_req: - runtime_constraints["keep_cache_mb_per_task"] = runtime_req["keep_cache"] + if "keep_cache" in runtime_req: + runtime_constraints["keep_cache_mb_per_task"] = runtime_req["keep_cache"] + if "outputDirType" in runtime_req: + if runtime_req["outputDirType"] == "local_output_dir": + script_parameters["task.keepTmpOutput"] = False + elif runtime_req["outputDirType"] == "keep_output_dir": + script_parameters["task.keepTmpOutput"] = True filters = [["repository", "=", "arvados"], ["script", "=", "crunchrunner"],