summaryrefslogtreecommitdiff
path: root/lib/gitlab/background_migration.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsolete argument from bg migrations codeGrzegorz Bizon2017-07-181-1/+1
|
* Simplify background migrations stealing codeGrzegorz Bizon2017-07-171-15/+3
| | | | | Simply re-raise an exception when it occurs, but guarantee that no background migration is lost in the process.
* Fix off-by-one error in background migration retriesfix/gb/process-scheduled-background-migrationsGrzegorz Bizon2017-07-171-5/+10
|
* Recover from all exceptions when stealing bg migrationGrzegorz Bizon2017-07-171-4/+22
| | | | | It also makes it possible to gracefully retry a migration in order to avoid problems like deadlocks.
* Catch exceptions when stealing background migrationsGrzegorz Bizon2017-07-141-1/+6
|
* Avoid race condition when stealing a background migrationGrzegorz Bizon2017-07-141-3/+1
| | | | | | We first pop a job from the Sidekiq queue / scheduled set and only if this has been successfully deleted we process the job. This makes it possible to minimize a possibility of a race condition happening.
* Fix mocks in background migrations specsGrzegorz Bizon2017-07-131-1/+0
|
* Implement draining scheduled sets of background migrationsGrzegorz Bizon2017-07-131-7/+12
|
* Extract background migratons queue class methodGrzegorz Bizon2017-07-111-2/+5
|
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-2/+2
|
* Add the ability to perform background migrationsYorick Peterse2017-06-121-0/+31
Background migrations can be used to perform long running data migrations without these blocking a deployment procedure. See MR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11854 for more information.