summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/exclusive_lease_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@14-0-stable-eeGitLab Bot2021-06-171-0/+78
|
* Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot2020-07-201-1/+1
|
* Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot2020-05-201-9/+73
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-081-0/+2
|
* Add rake task to cleanup any existing exclusive leaseGabriel Mazetto2018-03-091-0/+12
|
* Run background migrations with a minimum intervaldelay-background-migrationsYorick Peterse2018-01-051-0/+15
| | | | | | | | | | | | | | | This adds a minimum interval to BackgroundMigrationWorker, ensuring background migrations of the same class only run once every 5 minutes. This prevents a thundering herd problem where scheduled migrations all run at once due to their delays having been expired (e.g. as the result of a queue being paused for a long time). If a job was recently executed it's rescheduled with a delay that equals the remaining time of the job's lease. This means that if the lease expires in two minutes we only need to wait two minutes, instead of five. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/41624
* Adds exclusive lease to Git garbage collect worker.35558-only-one-garbage-collection-should-be-running-per-project-at-onceTiago Botelho2017-09-071-0/+12
|
* Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable2017-07-271-1/+1
| | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
* Support multiple Redis instances based on queue typePaul Charlton2017-07-111-1/+1
|
* Introduce #renew for ExclusiveLeasebackport-renew-exclusive-leaseGabriel Mazetto2017-06-241-0/+13
|
* Refine Git garbage collectionJacob Vosmaer2016-11-041-6/+21
|
* Don't schedule ProjectCacheWorker unless neededproject-cache-worker-schedulingYorick Peterse2016-10-251-14/+29
| | | | | | This changes ProjectCacheWorker.perform_async so it only schedules a job when no lease for the given project is present. This ensures we don't end up scheduling hundreds of jobs when they won't be executed anyway.
* Improve test descriptionsJacob Vosmaer2016-03-101-4/+4
|
* Add tests for ExclusiveLeaseJacob Vosmaer2016-03-101-0/+21