18870: Need to declare NODES as array
[arvados.git] / sdk / cwl / tests / wf / runin-reqs-wf3.cwl
index 352a919b3734cd1e881e33f99b2813b0ac36745e..c13b7a0bc6aa7b1caebcae0db1426d17bc0625f6 100644 (file)
@@ -7,9 +7,14 @@ cwlVersion: v1.0
 $namespaces:
   arv: "http://arvados.org/cwl#"
 inputs:
-  sleeptime:
+  count:
     type: int[]
     default: [1, 2, 3, 4]
+  script:
+    type: File
+    default:
+      class: File
+      location: check_mem.py
 outputs:
   out: []
 requirements:
@@ -20,31 +25,35 @@ requirements:
 steps:
   substep:
     in:
-      sleeptime: sleeptime
+      count: count
+      script: script
     out: []
     hints:
       - class: arv:RunInSingleContainer
-    scatter: sleeptime
+      - class: arv:APIRequirement
+    scatter: count
     run:
       class: Workflow
       id: mysub
       inputs:
-        sleeptime: int
+        count: int
+        script: File
       outputs: []
       steps:
         sleep1:
           in:
-            sleeptime: sleeptime
+            count: count
+            script: script
           out: []
           run:
             class: CommandLineTool
             id: subtool
             hints:
               - class: ResourceRequirement
-                ramMin: $(inputs.sleeptime*4)
+                ramMin: $(96+inputs.count*32)
             inputs:
-              sleeptime:
+              count:
                 type: int
-                inputBinding: {position: 1}
+              script: File
             outputs: []
-            baseCommand: sleep
+            arguments: [python, $(inputs.script), $(96+inputs.count * 32)]