You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/10 19:07:14 UTC

[GitHub] [airflow] Chris7 commented on a change in pull request #19769: Handle stuck queued tasks in Celery for db backend

Chris7 commented on a change in pull request #19769:
URL: https://github.com/apache/airflow/pull/19769#discussion_r824063695



##########
File path: airflow/executors/celery_executor.py
##########
@@ -337,6 +343,8 @@ def sync(self) -> None:
 
         if self.adopted_task_timeouts:
             self._check_for_stalled_adopted_tasks()
+        if time.time() - self.stuck_tasks_last_check_time > self.stuck_queued_task_check_interval:

Review comment:
       Won't this keep getting called every sync cycle? Shouldn't `stuck_tasks_last_check_time` be updated to the current time here.




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org