Merge branch '18874-merge-wb2'
[arvados.git] / sdk / cwl / tests / wf / runin-reqs-wf.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 requirements:
20   SubworkflowFeatureRequirement: {}
21   ScatterFeatureRequirement: {}
22   InlineJavascriptRequirement: {}
23   StepInputExpressionRequirement: {}
24 hints:
25   DockerRequirement:
26     dockerPull: arvados/jobs:2.2.2
27 steps:
28   substep:
29     in:
30       count: count
31       script: script
32     out: []
33     hints:
34       - class: arv:RunInSingleContainer
35       - class: ResourceRequirement
36         ramMin: $(96+inputs.count*32)
37       - class: arv:APIRequirement
38     scatter: count
39     run:
40       class: Workflow
41       id: mysub
42       inputs:
43         count: int
44         script: File
45       outputs: []
46       steps:
47         sleep1:
48           in:
49             count: count
50             script: script
51           out: []
52           run:
53             class: CommandLineTool
54             id: subtool
55             inputs:
56               count:
57                 type: int
58               script: File
59             outputs: []
60             arguments: [python, $(inputs.script), $(96+inputs.count * 32)]