X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ecf3cf1ec8544cffacc620919e35404e086b931a..8de691c25eac0454f8f30cfa35eccff15642e330:/sdk/cwl/arvados_cwl/runner.py?ds=inline diff --git a/sdk/cwl/arvados_cwl/runner.py b/sdk/cwl/arvados_cwl/runner.py index 3949709849..c55e976924 100644 --- a/sdk/cwl/arvados_cwl/runner.py +++ b/sdk/cwl/arvados_cwl/runner.py @@ -293,6 +293,12 @@ class Runner(object): self.tool = tool self.job_order = job_order self.running = False + if enable_reuse: + # If reuse is permitted by command line arguments but + # disabled by the workflow itself, disable it. + reuse_req, _ = get_feature(self.tool, "http://arvados.org/cwl#ReuseRequirement") + if reuse_req: + enable_reuse = reuse_req["enableReuse"] self.enable_reuse = enable_reuse self.uuid = None self.final_output = None