Merge branch '13399-lock-starvation'
[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 steps:
26   substep:
27     in:
28       count: count
29       script: script
30     out: []
31     hints:
32       - class: arv:RunInSingleContainer
33       - class: ResourceRequirement
34         ramMin: $(inputs.count*128)
35       - class: arv:APIRequirement
36     scatter: count
37     run:
38       class: Workflow
39       id: mysub
40       inputs:
41         count: int
42         script: File
43       outputs: []
44       steps:
45         sleep1:
46           in:
47             count: count
48             script: script
49           out: []
50           run:
51             class: CommandLineTool
52             id: subtool
53             inputs:
54               count:
55                 type: int
56               script: File
57             outputs: []
58             arguments: [python, $(inputs.script), $(inputs.count * 128)]