You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation of MigrationHarness::run_pending_migrations does not mention if the method can safely be called concurrently from e.g. two different processes.
Will this lead to the same migrations being applied twice, will one of the method calls fail (with a panic or an error?), or will all calls simply block until the migrations are finished?
What are you trying to accomplish?
Automatically apply pending migrations on application startup, but the application is architectured to have multiple backend processes running concurrently.
Setup
Versions
Problem Description
The documentation of
MigrationHarness::run_pending_migrations
does not mention if the method can safely be called concurrently from e.g. two different processes.Will this lead to the same migrations being applied twice, will one of the method calls fail (with a panic or an error?), or will all calls simply block until the migrations are finished?
What are you trying to accomplish?
Automatically apply pending migrations on application startup, but the application is architectured to have multiple backend processes running concurrently.
Checklist
closed if this is not the case)
The text was updated successfully, but these errors were encountered: