Skip to content

Async task race condition fix #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

mzbroch
Copy link
Contributor

@mzbroch mzbroch commented Aug 28, 2020

This PR prevents from occasional race condition in the netbox_onboarding application.
Potential behaviour was that workers were passed the onboarding task id, but at the worker execution moment the database transaction has not yet been committed thus the right onboarding task could not be found by the worker.

@mzbroch mzbroch changed the base branch from develop-2.0 to mzb-netbox-keeper-disaggregation August 28, 2020 12:46
Copy link
Contributor

@glennmatthews glennmatthews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find!

Copy link
Contributor

@dgarros dgarros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks great but on a side note looks like the tests are not passing with NetBox 2.9 anymore

@dgarros dgarros merged commit c0159ee into mzb-netbox-keeper-disaggregation Sep 14, 2020
@mzbroch mzbroch deleted the mzb-develop-2.0-fix-race branch November 19, 2020 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants