Actions
Bug #15497
closed[ACR] arv:ReuseRequirement enableReuse: false doesn't work
Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
-
Release:
Release relationship:
Auto
Description
I was interested in using arv:ReuseRequirement in one step of my workflows and I noticed it wasn't working like I expected.
I made an isolated test to demonstrate involving one Workflow that calls a CommandLineTool twice.
container-reuse-debug-wf.cwl:
$namespaces: arv: "http://arvados.org/cwl#" cwltool: "http://commonwl.org/cwltool#" cwlVersion: v1.0 class: Workflow inputs: a: File b: File c: File d: File e: File f: File outputs: abc: type: File outputSource: concat_abc/out def: type: File outputSource: concat_def/out steps: concat_abc: run: concat-files.cwl in: a: a b: b c: c out: [out] concat_def: run: concat-files.cwl in: a: d b: e c: f out: [out]
concat-files.cwl:
$namespaces: arv: "http://arvados.org/cwl#" cwltool: "http://commonwl.org/cwltool#" cwlVersion: v1.0 class: CommandLineTool hints: arv:APIRequirement: {} arv:ReuseRequirement: enableReuse: false inputs: a: File b: File c: File stdout: abc.txt arguments: - cat - $(inputs.a) - $(inputs.b) - $(inputs.c) outputs: out: type: stdout
And the call to arvados-cwl-runner:
arvados-cwl-runner --submit --no-wait --submit-runner-ram 2500 --thread-count=1 --project-uuid=e51c5-j7d0g-5rbacnqvduwtgvw --api=containers --name "concatfiles-container-reuse-test" container-reuse-debug-wf.cwl -a a.txt -b b.txt -c c.txt -d d.txt -e e.txt -f f.txt
This runs on Arvados as expected creating two output files. But, when I rerun arvados-cwl-runner the same way I do get container reuse. It doesn't seem that arv:ReuseRequirement is working in this scenario but I'm not sure if I'm misusing it or if there is a bug?
Files
Actions