vatsrahul1001 opened a new pull request, #77870: URL: https://github.com/apache/airflow/pull/77870
The triggerer supervisor skips its heartbeat and logs "TriggerRunner subprocess event loop appears deadlocked" when it has not handled a message from the runner for `runner_health_check_threshold` seconds. That time also included the supervisor's own work: the database work of the loop after it read the runner's sockets, and the work on a request before the reply is sent, such as uploading the logs of finished triggers. When either took longer than the threshold, a healthy runner was reported as deadlocked and the heartbeat was skipped, although the runner's next request was already waiting to be read, or the runner was still waiting for the reply. (cherry picked from commit 7a5b6a3bab27e1ba4468cc8924b9ebe6fead6589) Co-authored-by: buhuipao <[email protected]> --- Clean cherry-pick of the merge commit, no conflicts. **Verified locally:** test_triggerer_job.py, 148 passed, 1 skipped (needs a Postgres backend); ruff clean. Backport of #76885. Generated-by: Claude Code 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
