Skip to content

Fixes for installer/modules race condition#883

Merged
nabeelio merged 4 commits intodevfrom
InstallerFixes
Oct 21, 2020
Merged

Fixes for installer/modules race condition#883
nabeelio merged 4 commits intodevfrom
InstallerFixes

Conversation

@nabeelio
Copy link
Copy Markdown
Member

Something of a race condition happens when there are module migrations pending, but they're not picked up when the migration hasn't yet been loaded. This is an issue when there is seed data which depends on the migrations to run. So, before running the seeds, check for any pending migrations, but also in the installer, after running the initial migrations, check again for pending migrations, where the initial sets of modules that are running would have been loaded in.

cc @YashGovekar

@nabeelio nabeelio added the bug label Oct 21, 2020
@nabeelio nabeelio added this to the 7.0.0 milestone Oct 21, 2020
@nabeelio nabeelio merged commit cd18442 into dev Oct 21, 2020
@nabeelio nabeelio deleted the InstallerFixes branch October 21, 2020 17:28
@YashGovekar
Copy link
Copy Markdown
Contributor

Great

Something of a race condition happens when there are module migrations pending, but they're not picked up when the migration hasn't yet been loaded. This is an issue when there is seed data which depends on the migrations to run. So, before running the seeds, check for any pending migrations, but also in the installer, after running the initial migrations, check again for pending migrations, where the initial sets of modules that are running would have been loaded in.

cc @YashGovekar

Oh okay, got it.
Thanks

Copy link
Copy Markdown
Contributor

@YashGovekar YashGovekar left a comment

Choose a reason for hiding this comment

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

Ahh great! Took a bit to understand the code.
So finally all the module bugs have been solved :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants