Skip to content

Properly expire all pipeline caches when pipeline is deleted

Stan Hu requested to merge sh-fix-pipeline-delete-caching into master

When deleting a pipeline, only some of the cache structures were being expired, but not the full pipeline list. We have to synchronously schedule a pipeline cache expiration because the pipeline will be deleted if the Sidekiq expiration job picks it up. To do this, properly extract all the logic buried in the Sidekiq worker into a service, and then call the service.

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

Merge request reports