diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2018-10-07 21:31:08 +0300 |
---|---|---|
committer | Jan Provaznik <jprovaznik@gitlab.com> | 2018-12-07 00:00:19 +0300 |
commit | 239fdc78b1ced1861cdcf00b8927963e30ef2095 (patch) | |
tree | f5888314cdedf47b21a259d334fc739be0e38d5a /config/sidekiq_queues.yml | |
parent | c3bbad762d418857e3f5b52222f5eedd62663229 (diff) |
Use FastDestroy for deleting uploads
It gathers list of file paths to delete before destroying
the parent object. Then after the parent_object is destroyed
these paths are scheduled for deletion asynchronously.
Carrierwave needed associated model for deleting upload file.
To avoid this requirement, simple Fog/File layer is used directly
for file deletion, this allows us to use just a simple list of paths.
Diffstat (limited to 'config/sidekiq_queues.yml')
-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 d8002815bac..4782a223561 100644 --- a/config/sidekiq_queues.yml +++ b/config/sidekiq_queues.yml @@ -82,3 +82,4 @@ - [detect_repository_languages, 1] - [auto_devops, 2] - [repository_cleanup, 1] + - [delete_stored_files, 1] |