Merge branch 'master' into 14930-arvput-trash-at
[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   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: ResourceRequirement
37         ramMin: $(inputs.count*128)
38       - class: arv:APIRequirement
39     scatter: count
40     run:
41       class: Workflow
42       id: mysub
43       inputs:
44         count: int
45         script: File
46       outputs: []
47       steps:
48         sleep1:
49           in:
50             count: count
51             script: script
52           out: []
53           run:
54             class: CommandLineTool
55             id: subtool
56             inputs:
57               count:
58                 type: int
59               script: File
60             outputs: []
61             arguments: [python, $(inputs.script), $(inputs.count * 128)]