@@ -2202,7 +2202,7 @@ def test_adopt_or_reset_orphaned_tasks_multiple_executors(self, dag_maker, mock_
22022202 # Second executor called for ti3
22032203 mock_executors [1 ].try_adopt_task_instances .assert_called_once_with ([ti3 ])
22042204
2205- def test_fail_stuck_queued_tasks (self , dag_maker , session , mock_executors ):
2205+ def test_handle_stuck_queued_tasks (self , dag_maker , session , mock_executors ):
22062206 with dag_maker ("test_fail_stuck_queued_tasks_multiple_executors" ):
22072207 op1 = EmptyOperator (task_id = "op1" )
22082208 op2 = EmptyOperator (task_id = "op2" , executor = "default_exec" )
@@ -2228,7 +2228,7 @@ def test_fail_stuck_queued_tasks(self, dag_maker, session, mock_executors):
22282228 (None ,): mock_executors [0 ],
22292229 ("secondary_exec" ,): mock_executors [1 ],
22302230 }[x ]
2231- job_runner ._fail_tasks_stuck_in_queued ()
2231+ job_runner ._handle_tasks_stuck_in_queued ()
22322232
22332233 # Default executor is called for ti1 (no explicit executor override uses default) and ti2 (where we
22342234 # explicitly marked that for execution by the default executor)
@@ -2238,7 +2238,7 @@ def test_fail_stuck_queued_tasks(self, dag_maker, session, mock_executors):
22382238 mock_executors [0 ].cleanup_stuck_queued_tasks .assert_called_once_with (tis = [ti2 , ti1 ])
22392239 mock_executors [1 ].cleanup_stuck_queued_tasks .assert_called_once_with (tis = [ti3 ])
22402240
2241- def test_fail_stuck_queued_tasks_raises_not_implemented (self , dag_maker , session , caplog ):
2241+ def test_handle_stuck_queued_tasks_raises_not_implemented (self , dag_maker , session , caplog ):
22422242 with dag_maker ("test_fail_stuck_queued_tasks" ):
22432243 op1 = EmptyOperator (task_id = "op1" )
22442244
@@ -2253,7 +2253,7 @@ def test_fail_stuck_queued_tasks_raises_not_implemented(self, dag_maker, session
22532253 job_runner = SchedulerJobRunner (job = scheduler_job , num_runs = 0 )
22542254 job_runner ._task_queued_timeout = 300
22552255 with caplog .at_level (logging .DEBUG ):
2256- job_runner ._fail_tasks_stuck_in_queued ()
2256+ job_runner ._handle_tasks_stuck_in_queued ()
22572257 assert "Executor doesn't support cleanup of stuck queued tasks. Skipping." in caplog .text
22582258
22592259 @mock .patch ("airflow.dag_processing.manager.DagFileProcessorAgent" )
0 commit comments