Skip to content

WIP: Implement storage cleanup worker

Kamil Trzciński requested to merge storage-cleanup-worker into master

What does this MR do?

This implements a cron worker, ideally executed once a day to cleanup:

  1. Open multipart uploads,
  2. Temporary remote files stored in tmp/cache and tmp/uploads,
  3. Temporary local files stored in tmp/cache and tmp/uploads,
  4. Temporary empty local folders in tmp/cache and tmp/uploads.

This does not use any DB, it reaches the FS or OS and executes actions against these services.

This code does not use CarrierWave, it uses native FileSystem or Fog API. It is faster and easier to understand.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/47143

Edited by Kamil Trzciński

Merge request reports