Refactor arvbox federation test scripts, no issue #
[arvados.git] / sdk / cwl / tests / wf / runin-reqs-wf2.cwl
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 class: Workflow
6 cwlVersion: v1.0
7 $namespaces:
8   arv: "http://arvados.org/cwl#"
9 inputs:
10   count:
11     type: int[]
12     default: [1, 2, 3, 4]
13   script:
14     type: File
15     default:
16       class: File
17       location: check_mem.py
18 outputs:
19   out: []
20 requirements:
21   SubworkflowFeatureRequirement: {}
22   ScatterFeatureRequirement: {}
23   InlineJavascriptRequirement: {}
24   StepInputExpressionRequirement: {}
25 hints:
26   DockerRequirement:
27     dockerPull: arvados/jobs:1.4.0.20190604172024
28 steps:
29   substep:
30     in:
31       count: count
32       script: script
33     out: []
34     hints:
35       - class: arv:RunInSingleContainer
36       - class: arv:APIRequirement
37     scatter: count
38     run:
39       class: Workflow
40       id: mysub
41       inputs:
42         count: int
43         script: File
44       outputs: []
45       hints:
46         - class: ResourceRequirement
47           ramMin: $(96+inputs.count*32)
48       steps:
49         sleep1:
50           in:
51             count: count
52             script: script
53           out: []
54           run:
55             class: CommandLineTool
56             id: subtool
57             inputs:
58               count:
59                 type: int
60               script: File
61             outputs: []
62             arguments: [python, $(inputs.script), $(96+inputs.count * 32)]