File tree Expand file tree Collapse file tree 5 files changed +166
-0
lines changed Expand file tree Collapse file tree 5 files changed +166
-0
lines changed Original file line number Diff line number Diff line change 2810
2810
doc : Test expression in time limit
2811
2811
tags : [ command_line_tool, timelimit, inline_javascript ]
2812
2812
2813
+ - job : tests/empty.json
2814
+ should_fail : true
2815
+ tool : tests/timelimit-wf.cwl
2816
+ label : timelimit_basic_wf
2817
+ doc : Test that workflow fails when exceeding time limit
2818
+ tags : [ workflow, timelimit ]
2819
+
2820
+ - job : tests/empty.json
2821
+ should_fail : true
2822
+ tool : tests/timelimit2-wf.cwl
2823
+ label : timelimit_invalid_wf
2824
+ doc : Test invalid time limit value workflow level
2825
+ tags : [ workflow, timelimit ]
2826
+
2827
+ - job : tests/empty.json
2828
+ output :
2829
+ o : time passed
2830
+ tool : tests/timelimit3-wf.cwl
2831
+ label : timelimit_zero_unlimited_wf
2832
+ doc : Test zero timelimit means no limit in workflow
2833
+ tags : [ workflow, timelimit ]
2834
+
2835
+ - job : tests/empty.json
2836
+ should_fail : true
2837
+ tool : tests/timelimit4.cwl
2838
+ label : timelimit_from_expression_wf
2839
+ doc : Test expression in time limit in workflow
2840
+ tags : [ workflow, timelimit, inline_javascript ]
2841
+
2813
2842
- job : tests/empty.json
2814
2843
output : {}
2815
2844
tool : tests/networkaccess.cwl
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env cwl-runner
2
+ class: Workflow
3
+ cwlVersion: v1.1.0-dev1
4
+
5
+ requirements :
6
+ TimeLimit:
7
+ timelimit: 3
8
+
9
+ inputs :
10
+ i:
11
+ type : int ?
12
+
13
+ outputs :
14
+ o:
15
+ type : string ?
16
+ outputSource : step1/o
17
+
18
+ steps :
19
+ step1:
20
+ in :
21
+ i: i
22
+ out : [o]
23
+ run :
24
+ class: CommandLineTool
25
+ baseCommand : ["sleep" , "10" ]
26
+ inputs :
27
+ i:
28
+ type : int ?
29
+ outputs :
30
+ o:
31
+ type : string ?
32
+ outputBinding :
33
+ outputEval : "time passed"
34
+
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env cwl-runner
2
+ class: Workflow
3
+ cwlVersion: v1.1.0-dev1
4
+
5
+ requirements :
6
+ TimeLimit:
7
+ timelimit: -1
8
+
9
+ inputs :
10
+ i:
11
+ type : int ?
12
+
13
+ outputs :
14
+ o:
15
+ type : string ?
16
+ outputSource : step1/o
17
+
18
+ steps :
19
+ step1:
20
+ in :
21
+ i: i
22
+ out : [o]
23
+ run :
24
+ class: CommandLineTool
25
+ baseCommand : ["sleep" , "10" ]
26
+ inputs :
27
+ i:
28
+ type : int ?
29
+ outputs :
30
+ o:
31
+ type : string ?
32
+ outputBinding :
33
+ outputEval : "time passed"
34
+
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env cwl-runner
2
+ class: Workflow
3
+ cwlVersion: v1.1.0-dev1
4
+
5
+ requirements :
6
+ TimeLimit:
7
+ timelimit: 0
8
+
9
+ inputs :
10
+ i:
11
+ type : int ?
12
+
13
+ outputs :
14
+ o:
15
+ type : string ?
16
+ outputSource : step1/o
17
+
18
+ steps :
19
+ step1:
20
+ in :
21
+ i: i
22
+ out : [o]
23
+ run :
24
+ class: CommandLineTool
25
+ baseCommand : ["sleep" , "10" ]
26
+ inputs :
27
+ i:
28
+ type : int ?
29
+ outputs :
30
+ o:
31
+ type : string ?
32
+ outputBinding :
33
+ outputEval : "time passed"
34
+
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env cwl-runner
2
+ class: Workflow
3
+ cwlVersion: v1.1.0-dev1
4
+
5
+ requirements :
6
+ TimeLimit:
7
+ timelimit: $(1+2)
8
+ InlineJavascriptRequirement: {}
9
+
10
+ inputs :
11
+ i:
12
+ type : int ?
13
+
14
+ outputs :
15
+ o:
16
+ type : string ?
17
+ outputSource : step1/o
18
+
19
+ steps :
20
+ step1:
21
+ in :
22
+ i: i
23
+ out : [o]
24
+ run :
25
+ class: CommandLineTool
26
+ baseCommand : ["sleep" , "10" ]
27
+ inputs :
28
+ i:
29
+ type : int ?
30
+ outputs :
31
+ o:
32
+ type : string ?
33
+ outputBinding :
34
+ outputEval : "time passed"
35
+
You can’t perform that action at this time.
0 commit comments