repl-chris commented on code in PR #23690:
URL: https://github.com/apache/airflow/pull/23690#discussion_r875326824
##########
airflow/executors/celery_executor.py:
##########
@@ -315,25 +320,23 @@ def sync(self) -> None:
self.log.debug("No task to query celery, skipping sync")
return
self.update_all_task_states()
+ self._check_for_stalled_tasks()
- if self.adopted_task_timeouts:
- self._check_for_stalled_adopted_tasks()
-
- def _check_for_stalled_adopted_tasks(self):
+ @provide_session
+ def _check_for_stalled_tasks(self, session: Session = NEW_SESSION):
Review Comment:
ok cool, this came out rather nice....each "type" is now tracked and
processed separately, nice and clean
--
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]