diff options
author | Toon Claes <toon@gitlab.com> | 2017-05-08 17:13:02 +0200 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-05-10 15:01:27 +0200 |
commit | 0ad80cab40097658b1eec5b87d440cfcd60d2755 (patch) | |
tree | ac6799f5813de9e0e9c4f584f29f1d9883693d62 /config | |
parent | 4f446dd45a4068a77f606c02c95389c5cf6a6647 (diff) | |
download | gitlab-ce-0ad80cab40097658b1eec5b87d440cfcd60d2755.tar.gz |
Use worker to destroy namespaceless projects in post-deploy
Destroying projects can be very time consuming. So instead of destroying them in
the post-deploy, just schedule them and make Sidekiq do the hard work.
They are scheduled in batches of 5000 records. This way the number of database
requests is limited while also the amount data read to memory is limited.
Diffstat (limited to 'config')
-rw-r--r-- | config/sidekiq_queues.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/sidekiq_queues.yml b/config/sidekiq_queues.yml index 433381e79d3..0ca1f565185 100644 --- a/config/sidekiq_queues.yml +++ b/config/sidekiq_queues.yml @@ -40,6 +40,7 @@ - [expire_build_instance_artifacts, 1] - [group_destroy, 1] - [irker, 1] + - [namespaceless_project_destroy, 1] - [project_cache, 1] - [project_destroy, 1] - [project_export, 1] |