Project

General

Profile

Actions

Bug #15497

closed

[ACR] arv:ReuseRequirement enableReuse: false doesn't work

Added by Stephen McLaughlin over 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
-
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

test-workflow.jpg (36.6 KB) test-workflow.jpg wf process calls Lucas Di Pentima, 10/23/2019 07:22 PM
cwl-reuse-test.tgz (72.4 KB) cwl-reuse-test.tgz workflow files Lucas Di Pentima, 10/23/2019 07:22 PM

Subtasks 1 (0 open1 closed)

Task #15748: Review 15497-reuse-fixResolvedEric Biagiotti10/24/2019Actions
Actions

Also available in: Atom PDF