-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix task retries when they receive sigkill and have retries and prope…
…rly handle sigterm Currently tasks are not retried when they receive sigkill or sigterm even if the task has retries. This change fixes it and added test for both sigterm and sigkill so we don't experience regression Before, sigterm sets the task as failed and raises AirflowException which heartbeat sometimes see as externally set to fail and not call failure_callbacks. This commit also fixes this by calling handle_task_exit when task gets sigterm add comment about exit code 143 fix tests Apply suggestions from code review fixup! Apply suggestions from code review fixup! fixup! Apply suggestions from code review fixup! fixup! fixup! Apply suggestions from code review Properly test sigkill and sigterm fort 'ti' fixup! Properly test sigkill and sigterm fort 'ti' Move sigterm test for tasks to taskinstance.py fix sigkill fixup! fix sigkill Fix tests and move retry callback out of finished callback Apply suggestions from code review Fix conflict fixup! Apply suggestions from code review fixup! fixup! Apply suggestions from code review fixup! Fix task retries when they receive sigkill and have retries and properly handle sigterm fixup! fixup! Fix task retries when they receive sigkill and have retries and properly handle sigterm Fix and remove other tests marked quarantined that changes task state Properly document each tests and set error to None when there's sigkill/sigterm remove task instantiation as it's not needed Take back retry callback to finished callback since finished callback is always run fixup! Fix task retries when they receive sigkill and have retries and properly handle sigterm fixup! Fix task retries when they receive sigkill and have retries and properly handle sigterm fixup! fixup! Fix task retries when they receive sigkill and have retries and properly handle sigterm Apply suggestions from code review Co-authored-by: Ash Berlin-Taylor <[email protected]> fixup! Apply suggestions from code review
- Loading branch information
1 parent
4dc622d
commit 089a3c2
Showing
3 changed files
with
190 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters