@@ -307,7 +307,7 @@ def test_status_reports_alive_workers_not_total(actor_context, tmp_path):
307307 operations = [],
308308 stage_name = "test" ,
309309 )
310- coord .start_stage ("test" , [task ])
310+ coord ._start_stage ("test" , [task ])
311311
312312 # Register 3 workers
313313 for i in range (3 ):
@@ -371,7 +371,7 @@ def test_no_duplicate_results_on_heartbeat_timeout(actor_context, tmp_path):
371371 operations = [],
372372 stage_name = "test" ,
373373 )
374- coord .start_stage ("test" , [task ])
374+ coord ._start_stage ("test" , [task ])
375375
376376 # Worker A pulls task (attempt 0)
377377 pulled = coord .pull_task ("worker-A" )
@@ -435,7 +435,7 @@ def test_coordinator_accepts_winner_ignores_stale(actor_context, tmp_path):
435435 operations = [],
436436 stage_name = "test" ,
437437 )
438- coord .start_stage ("test" , [task ])
438+ coord ._start_stage ("test" , [task ])
439439
440440 # Worker A pulls task (attempt 0)
441441 pulled_a = coord .pull_task ("worker-A" )
@@ -520,7 +520,7 @@ def test_report_error_requeues_until_max_shard_failures(actor_context, tmp_path)
520520 operations = [],
521521 stage_name = "test" ,
522522 )
523- coord .start_stage ("test" , [task ])
523+ coord ._start_stage ("test" , [task ])
524524 coord .register_worker ("worker-0" , MagicMock ())
525525
526526 # Each failure should re-queue until the limit
@@ -553,7 +553,7 @@ def test_heartbeat_timeouts_do_not_count_toward_shard_failures(actor_context, tm
553553 operations = [],
554554 stage_name = "test" ,
555555 )
556- coord .start_stage ("test" , [task ])
556+ coord ._start_stage ("test" , [task ])
557557 coord .register_worker ("worker-0" , MagicMock ())
558558
559559 # Far more heartbeat timeouts than MAX_SHARD_FAILURES — must not abort.
@@ -586,7 +586,7 @@ def test_worker_reregistration_does_not_count_toward_shard_failures(actor_contex
586586 operations = [],
587587 stage_name = "test" ,
588588 )
589- coord .start_stage ("test" , [task ])
589+ coord ._start_stage ("test" , [task ])
590590 coord .register_worker ("worker-0" , MagicMock ())
591591
592592 for _ in range (MAX_SHARD_FAILURES * 5 ):
@@ -613,7 +613,7 @@ def test_report_error_still_aborts_at_max_shard_failures_after_preemptions(actor
613613 operations = [],
614614 stage_name = "test" ,
615615 )
616- coord .start_stage ("test" , [task ])
616+ coord ._start_stage ("test" , [task ])
617617 coord .register_worker ("worker-0" , MagicMock ())
618618
619619 # Several preemption cycles first — these must not count.
@@ -649,7 +649,7 @@ def test_wait_for_stage_fails_when_all_workers_die(actor_context, tmp_path):
649649 operations = [],
650650 stage_name = "test" ,
651651 )
652- coord .start_stage ("test" , [task ])
652+ coord ._start_stage ("test" , [task ])
653653
654654 # Register 2 workers
655655 coord .register_worker ("worker-0" , MagicMock ())
@@ -682,7 +682,7 @@ def test_wait_for_stage_resets_dead_timer_on_recovery(actor_context, tmp_path):
682682 operations = [],
683683 stage_name = "test" ,
684684 )
685- coord .start_stage ("test" , [task ])
685+ coord ._start_stage ("test" , [task ])
686686
687687 # Register and kill a worker
688688 coord .register_worker ("worker-0" , MagicMock ())
@@ -838,7 +838,7 @@ def test_pull_task_returns_shutdown_on_last_stage_empty_queue(actor_context, tmp
838838 )
839839
840840 # Non-last stage: empty queue returns None
841- coord .start_stage ("stage-0" , [task ], is_last_stage = False )
841+ coord ._start_stage ("stage-0" , [task ], is_last_stage = False )
842842 pulled = coord .pull_task ("worker-A" )
843843 assert pulled is not None and pulled != "SHUTDOWN"
844844 _task , attempt , _config = pulled
@@ -856,7 +856,7 @@ def test_pull_task_returns_shutdown_on_last_stage_empty_queue(actor_context, tmp
856856 operations = [],
857857 stage_name = "test-last" ,
858858 )
859- coord .start_stage ("stage-1" , [task2 ], is_last_stage = True )
859+ coord ._start_stage ("stage-1" , [task2 ], is_last_stage = True )
860860 pulled = coord .pull_task ("worker-A" )
861861 assert pulled is not None and pulled != "SHUTDOWN"
862862 _task , attempt , _config = pulled
@@ -871,7 +871,7 @@ def test_pull_task_returns_shutdown_on_last_stage_empty_queue(actor_context, tmp
871871 ShardTask (shard_idx = i , total_shards = 2 , shard = ListShard (refs = []), operations = [], stage_name = "test-last2" )
872872 for i in range (2 )
873873 ]
874- coord .start_stage ("stage-2" , tasks_2 , is_last_stage = True )
874+ coord ._start_stage ("stage-2" , tasks_2 , is_last_stage = True )
875875 coord .pull_task ("worker-A" ) # task 0 in-flight
876876 # Queue has one task left; worker-B takes it
877877 coord .pull_task ("worker-B" ) # task 1 in-flight
@@ -889,7 +889,7 @@ def test_last_stage_deadlock_detected_when_worker_job_dies(actor_context, tmp_pa
889889 ShardTask (shard_idx = i , total_shards = 2 , shard = ListShard (refs = []), operations = [], stage_name = "test" )
890890 for i in range (2 )
891891 ]
892- coord .start_stage ("last-stage" , tasks , is_last_stage = True )
892+ coord ._start_stage ("last-stage" , tasks , is_last_stage = True )
893893
894894 # Set up a mock worker group so _check_worker_group can query it.
895895 mock_group = MagicMock ()
0 commit comments