@@ -212,7 +212,6 @@ def __init__(
212
212
213
213
self .tasks_to_hold : Set [Tuple [str , 'PointBase' ]] = set ()
214
214
self .tasks_to_trigger_now : Set ['TaskProxy' ] = set ()
215
- self .tasks_to_trigger_on_resume : Set ['TaskProxy' ] = set ()
216
215
217
216
def set_stop_task (self , task_id ):
218
217
"""Set stop after a task."""
@@ -904,8 +903,6 @@ def remove(self, itask: 'TaskProxy', reason: Optional[str] = None) -> None:
904
903
else :
905
904
with suppress (KeyError ):
906
905
self .tasks_to_trigger_now .remove (itask )
907
- with suppress (KeyError ):
908
- self .tasks_to_trigger_on_resume .remove (itask )
909
906
self .tasks_removed = True
910
907
self .active_tasks_changed = True
911
908
if not self .active_tasks [itask .point ]:
@@ -2339,7 +2336,7 @@ def _get_active_flow_nums(self) -> 'FlowNums':
2339
2336
or {1 }
2340
2337
)
2341
2338
2342
- def queue_or_trigger (self , itask : 'TaskProxy' , on_resume : bool = False ):
2339
+ def queue_or_trigger (self , itask : 'TaskProxy' ):
2343
2340
"""Handle state, queues, and runahead for a manually triggered task.
2344
2341
2345
2342
Triggering a non-queued task:
@@ -2349,7 +2346,7 @@ def queue_or_trigger(self, itask: 'TaskProxy', on_resume: bool = False):
2349
2346
Triggering a queued task:
2350
2347
- run it, regardless of the queue limit
2351
2348
2352
- If ready, add itask to the tasks_to_trigger_(now/on_resume) lists .
2349
+ If ready, add itask to the tasks_to_trigger_now list .
2353
2350
2354
2351
Assumes the task is in the pool.
2355
2352
@@ -2389,16 +2386,7 @@ def queue_or_trigger(self, itask: 'TaskProxy', on_resume: bool = False):
2389
2386
if not itask .state .is_queued :
2390
2387
# If not queued now, record the task as ready to run.
2391
2388
itask .waiting_on_job_prep = True
2392
-
2393
- if on_resume :
2394
- self .tasks_to_trigger_on_resume .add (itask )
2395
- # In case previously triggered without --on-resume.
2396
- # (It should have run already, but just in case).
2397
- self .tasks_to_trigger_now .discard (itask )
2398
- else :
2399
- self .tasks_to_trigger_now .add (itask )
2400
- # In case previously triggered with --on-resume.
2401
- self .tasks_to_trigger_on_resume .discard (itask )
2389
+ self .tasks_to_trigger_now .add (itask )
2402
2390
2403
2391
# Task may be set running before xtrigger is satisfied,
2404
2392
# if so check/spawn if xtrigger sequential.
0 commit comments