Missing documentation about concurrent runs of MigrationHarness::run_pending_migrations
#3707
Open
3 tasks done
Labels
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: