Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Retry Dagbag.sync_to_db to avoid Deadlocks#12046

Merged
kaxil merged 1 commit intoapache:masterfrom
astronomer:retry-sync-db
Nov 2, 2020
Merged

Retry Dagbag.sync_to_db to avoid Deadlocks#12046
kaxil merged 1 commit intoapache:masterfrom
astronomer:retry-sync-db

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Nov 2, 2020

Previously we added Retry in DagFileProcessor.process_file to
retry dagbag.sync_to_db. However, this meant that if anyone calls
dagbag.sync_to_db separately then also need to manage retrying it
by themselves. This caused failures in CI for MySQL.

resolves #11543


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

Previously we added Retry in DagFileProcessor.process_file to
retry dagbag.sync_to_db. However, this meant that if anyone calls
dagbag.sync_to_db separately then also need to manage retrying it
by themselves. This caused failures in CI for MySQL.

resolves apache#11543
@kaxil kaxil requested a review from ashb November 2, 2020 16:04
@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Nov 2, 2020
@kaxil kaxil added the full tests needed We need to run full set of tests for this PR to merge label Nov 2, 2020
@kaxil kaxil merged commit 2192010 into apache:master Nov 2, 2020
@kaxil kaxil deleted the retry-sync-db branch November 2, 2020 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Scheduler including HA (high availability) scheduler full tests needed We need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scheduler Deadlock in tests for MySQL 5.7

2 participants