[docs] Info rescheduling background migrations
This commit is contained in:
parent
0478ff7cd4
commit
917fb1744c
|
@ -94,6 +94,18 @@ jobs = [['BackgroundMigrationClassName', [1]],
|
|||
BackgroundMigrationWorker.bulk_perform_in(5.minutes, jobs)
|
||||
```
|
||||
|
||||
### Rescheduling background migrations
|
||||
|
||||
If one of the background migrations contains a bug that is fixed in a patch
|
||||
release, the background migration needs to be rescheduled so the migration would
|
||||
be repeated on systems that already performed the initial migration.
|
||||
|
||||
When you reschedule the background migration, make sure to turn the original
|
||||
scheduling into a no-op by clearing up the `#up` and `#down` methods of the
|
||||
migration performing the scheduling. Otherwise the background migration would be
|
||||
scheduled multiple times on systems that are upgrading multiple patch releases at
|
||||
once.
|
||||
|
||||
## Cleaning Up
|
||||
|
||||
>**Note:**
|
||||
|
|
Loading…
Reference in New Issue