forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACKPORT] Add retry logic in the scheduler for updating trigger time…
…outs in case of deadlocks. (apache#41429) (apache#42651) * Add retry logic in the scheduler for updating trigger timeouts in case of deadlocks. (apache#41429) * Add retry in update trigger timeout * add ut for these cases * use OperationalError in ut to describe deadlock scenarios * [MINOR] add newsfragment for this PR * [MINOR] refactor UT for mypy check (cherry picked from commit 00589cf) * Fix type-ignore comment for typing changes (apache#42656) --------- Co-authored-by: TakawaAkirayo <[email protected]> Co-authored-by: Tzu-ping Chung <[email protected]>
- Loading branch information
1 parent
f7556c4
commit fcbf6fe
Showing
3 changed files
with
99 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add ``run_with_db_retries`` when the scheduler updates the deferred Task as failed to tolerate database deadlock issues. |
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