@@ -212,7 +212,6 @@ def __init__(
212212
213213 self .tasks_to_hold : Set [Tuple [str , 'PointBase' ]] = set ()
214214 self .tasks_to_trigger_now : Set ['TaskProxy' ] = set ()
215- self .tasks_to_trigger_on_resume : Set ['TaskProxy' ] = set ()
216215
217216 def set_stop_task (self , task_id ):
218217 """Set stop after a task."""
@@ -904,8 +903,6 @@ def remove(self, itask: 'TaskProxy', reason: Optional[str] = None) -> None:
904903 else :
905904 with suppress (KeyError ):
906905 self .tasks_to_trigger_now .remove (itask )
907- with suppress (KeyError ):
908- self .tasks_to_trigger_on_resume .remove (itask )
909906 self .tasks_removed = True
910907 self .active_tasks_changed = True
911908 if not self .active_tasks [itask .point ]:
@@ -2339,7 +2336,7 @@ def _get_active_flow_nums(self) -> 'FlowNums':
23392336 or {1 }
23402337 )
23412338
2342- def queue_or_trigger (self , itask : 'TaskProxy' , on_resume : bool = False ):
2339+ def queue_or_trigger (self , itask : 'TaskProxy' ):
23432340 """Handle state, queues, and runahead for a manually triggered task.
23442341
23452342 Triggering a non-queued task:
@@ -2349,7 +2346,7 @@ def queue_or_trigger(self, itask: 'TaskProxy', on_resume: bool = False):
23492346 Triggering a queued task:
23502347 - run it, regardless of the queue limit
23512348
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 .
23532350
23542351 Assumes the task is in the pool.
23552352
@@ -2389,16 +2386,7 @@ def queue_or_trigger(self, itask: 'TaskProxy', on_resume: bool = False):
23892386 if not itask .state .is_queued :
23902387 # If not queued now, record the task as ready to run.
23912388 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 )
24022390
24032391 # Task may be set running before xtrigger is satisfied,
24042392 # if so check/spawn if xtrigger sequential.
0 commit comments