Retry in sync_dns_scheduler if migration not finished #2154
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We have to ensure that the migration has finshed succesfully in the
sync_dns_scheduler, before we can load the db Models. Otherwise the
sync-dns job gets into an inconsistent state since the db is still being
migrated or DB being upgraded.
#164325756
Co-authored-by: Sebastian Heid [email protected]
Co-authored-by: Vladimir Videlov [email protected]
Co-authored-by: Denis Langer [email protected]
What is this change about?
Fix #2150
What tests have you run against this PR?
All unit and integration tests.
Also manually verified functionality by delaying the database migration by 30 seconds.
Does this PR introduce a breaking change?
No.
Tag your pair, your PM, and/or team!
@s4heid && @videlov && @langered