@@ -216,7 +216,6 @@ def __init__(
216216
217217 self .tasks_to_hold : Set [Tuple [str , 'PointBase' ]] = set ()
218218 self .tasks_to_trigger_now : Set ['TaskProxy' ] = set ()
219- self .tasks_to_trigger_on_resume : Set ['TaskProxy' ] = set ()
220219
221220 def set_stop_task (self , task_id ):
222221 """Set stop after a task."""
@@ -2299,7 +2298,7 @@ def _get_flow_nums(
22992298 for n in flow
23002299 }
23012300
2302- def _force_trigger (self , itask : 'TaskProxy' , on_resume : bool = False ):
2301+ def _force_trigger (self , itask : 'TaskProxy' ):
23032302 """Process a manually triggered task, ready for job submission.
23042303
23052304 Assumes the task is in the pool.
@@ -2311,10 +2310,6 @@ def _force_trigger(self, itask: 'TaskProxy', on_resume: bool = False):
23112310 - queue it, if the queue is limiting activity
23122311 - run it, if the queue is not limiting activity
23132312
2314- After state reset and queue handling:
2315- - if on_resume is False, add the task to tasks_to_trigger_now
2316- - if on_resume is True, add the task to tasks_to_trigger_on_resume
2317-
23182313 The scheduler will release tasks from the tasks_to_trigger sets.
23192314
23202315 """
@@ -2350,15 +2345,7 @@ def _force_trigger(self, itask: 'TaskProxy', on_resume: bool = False):
23502345 # If not queued now, record the task as ready to run.
23512346 itask .waiting_on_job_prep = True
23522347
2353- if on_resume :
2354- self .tasks_to_trigger_on_resume .add (itask )
2355- # In case previously triggered without --on-resume.
2356- # (It should have run already, but just in case).
2357- self .tasks_to_trigger_now .discard (itask )
2358- else :
2359- self .tasks_to_trigger_now .add (itask )
2360- # In case previously triggered with --on-resume.
2361- self .tasks_to_trigger_on_resume .discard (itask )
2348+ self .tasks_to_trigger_now .add (itask )
23622349
23632350 # Task may be set running before xtrigger is satisfied,
23642351 # if so check/spawn if xtrigger sequential.
@@ -2370,7 +2357,6 @@ def force_trigger_tasks(
23702357 flow : List [str ],
23712358 flow_wait : bool = False ,
23722359 flow_descr : Optional [str ] = None ,
2373- on_resume : bool = False
23742360 ):
23752361 """Manually trigger tasks.
23762362
@@ -2406,7 +2392,7 @@ def force_trigger_tasks(
24062392 LOG .error (f"[{ itask } ] ignoring trigger - already active" )
24072393 continue
24082394 self .merge_flows (itask , flow_nums )
2409- self ._force_trigger (itask , on_resume )
2395+ self ._force_trigger (itask )
24102396
24112397 # Spawn and trigger inactive tasks.
24122398 if not flow :
@@ -2441,7 +2427,7 @@ def force_trigger_tasks(
24412427
24422428 # run it (or run it again for incomplete flow-wait)
24432429 self .add_to_pool (itask )
2444- self ._force_trigger (itask , on_resume )
2430+ self ._force_trigger (itask )
24452431
24462432 def spawn_parentless_sequential_xtriggers (self ):
24472433 """Spawn successor(s) of parentless wall clock satisfied tasks."""
0 commit comments