RNHTTR commented on code in PR #30108:
URL: https://github.com/apache/airflow/pull/30108#discussion_r1140348115


##########
airflow/jobs/scheduler_job.py:
##########
@@ -1408,6 +1416,40 @@ def _send_sla_callbacks_to_processor(self, dag: DAG) -> 
None:
         )
         self.executor.send_callback(request)
 
+    @provide_session
+    def _fail_tasks_stuck_in_queued(self, session: Session = NEW_SESSION) -> 
None:

Review Comment:
   IMO this is a general problem that applies to both kubernetes & celery 
executors. The relevant k8s exec setting is 
[worker_pods_queued_check_interval](https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#worker-pods-queued-check-interval)
 -- I think this can also be handled in the scheduler. I also think this can 
probably replace 
[task-adoption-timeout](https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#task-adoption-timeout)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to