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