@@ -66,7 +66,7 @@ def job(
66
66
67
67
yield from self .step .job (joborder , output_callback , runtimeContext )
68
68
69
- def __repr__ (self ):
69
+ def __repr__ (self ) -> str :
70
70
return f"<{ self .__class__ .__name__ } [{ self .name } ]>"
71
71
72
72
@@ -92,7 +92,9 @@ def completed(self) -> int:
92
92
"""The number of completed internal jobs."""
93
93
return len (self ._completed )
94
94
95
- def receive_scatter_output (self , index : int , runtimeContext : RuntimeContext , jobout : CWLObjectType , processStatus : str ) -> None :
95
+ def receive_scatter_output (
96
+ self , index : int , runtimeContext : RuntimeContext , jobout : CWLObjectType , processStatus : str
97
+ ) -> None :
96
98
"""Record the results of a scatter operation."""
97
99
for key , val in jobout .items ():
98
100
self .dest [key ][index ] = val
@@ -147,7 +149,10 @@ def parallel_steps(
147
149
continue
148
150
try :
149
151
for j in step :
150
- if runtimeContext .on_error != "continue" and rc .processStatus not in ("success" , "skipped" ):
152
+ if runtimeContext .on_error != "continue" and rc .processStatus not in (
153
+ "success" ,
154
+ "skipped" ,
155
+ ):
151
156
break
152
157
if j is not None :
153
158
made_progress = True
@@ -260,7 +265,9 @@ def _flat_crossproduct_scatter(
260
265
if len (scatter_keys ) == 1 :
261
266
if runtimeContext .postScatterEval is not None :
262
267
sjob = runtimeContext .postScatterEval (sjob )
263
- curriedcallback = functools .partial (callback .receive_scatter_output , put , runtimeContext )
268
+ curriedcallback = functools .partial (
269
+ callback .receive_scatter_output , put , runtimeContext
270
+ )
264
271
if sjob is not None :
265
272
steps .append (process .job (sjob , curriedcallback , runtimeContext ))
266
273
else :
@@ -808,10 +815,7 @@ def job(
808
815
self .made_progress = False
809
816
810
817
for step in self .steps :
811
- if (
812
- runtimeContext .on_error != "continue"
813
- and self .processStatus != "success"
814
- ):
818
+ if runtimeContext .on_error != "continue" and self .processStatus != "success" :
815
819
break
816
820
817
821
if not step .submitted :
@@ -855,8 +859,10 @@ def job(
855
859
# or all outputs have been produced.
856
860
857
861
def __repr__ (self ):
862
+ def __repr__ (self ) -> str :
858
863
return f"<{ self .__class__ .__name__ } [{ self .name } ]>"
859
864
865
+
860
866
class WorkflowJobLoopStep :
861
867
"""Generated for each step in Workflow.steps() containing a `loop` directive."""
862
868
0 commit comments