Skip to content
  • Hugo Ortiz's avatar
    Add package file cleanup jobs · d039bfa2
    Hugo Ortiz authored and Igor Drozdov's avatar Igor Drozdov committed
    - Add a cron job and a limited capacity worker to delete package files
      in a decoupled and async way, taking the Package Registry a step
      closer to a scalable package file deletion approach.
    - The cron job runs twice a day. It checks if there are any package
      files pending destruction, in which case it enqueues the limited
      capacity worker.
    - The limited capacity worker picks up and destroys package files that
      are pending destruction one by one until all have ben deleted.
    - Since the new jobs are very similar in functionality to the Dependency
      Proxy cleanup jobs, do some refactoring for reuse.
    Changelog: other