Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-10-16Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-04-09Add methods to check dead and retrying jobsOswaldo Ferreira
It adds two methods for checking if a background job (for a given class) has dead or retrying jobs.
2019-02-02Consume remaining MigrateApproverToApprovalRulesInBatchMark Chao
Allow `steal` to handle dead jobs.
2019-01-08Check if specific type of background migration are doneMark Chao
Useful for checking progress.
2018-10-22Enable frozen string for lib/gitlab/*.rbgfyoung
2018-08-06Respond to DB health in background migrationsYorick Peterse
This changes the BackgroundMigration worker so it checks for the health of the DB before performing a background migration. This in turn allows us to reduce the minimum interval, without having to worry about blowing things up if we schedule too many migrations. In this setup, the BackgroundMigration worker will reschedule jobs as long as the database is considered to be in an unhealthy state. Once the database has recovered, the migration can be performed. To determine if the database is in a healthy state, we look at the replication lag of any replication slots defined on the primary. If the lag is deemed to great (100 MB by default) for too many slots, the migration is rescheduled for a later point in time. The health checking code is hidden behind a feature flag, allowing us to disable it if necessary.
2017-07-18Remove obsolete argument from bg migrations codeGrzegorz Bizon
2017-07-17Simplify background migrations stealing codeGrzegorz Bizon
Simply re-raise an exception when it occurs, but guarantee that no background migration is lost in the process.
2017-07-17Fix off-by-one error in background migration retriesGrzegorz Bizon
2017-07-17Recover from all exceptions when stealing bg migrationGrzegorz Bizon
It also makes it possible to gracefully retry a migration in order to avoid problems like deadlocks.
2017-07-14Catch exceptions when stealing background migrationsGrzegorz Bizon
2017-07-14Avoid race condition when stealing a background migrationGrzegorz Bizon
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.
2017-07-13Fix mocks in background migrations specsGrzegorz Bizon
2017-07-13Implement draining scheduled sets of background migrationsGrzegorz Bizon
2017-07-11Extract background migratons queue class methodGrzegorz Bizon
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-12Add the ability to perform background migrationsYorick Peterse
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.