Commit d94af83f authored by Alex Kalderimis's avatar Alex Kalderimis

Merge branch '322848-remove-calling-pipeline-cache' into 'master'

Remove calling ExpirePipelineCacheWorker from BuildFinishedWorker

See merge request gitlab-org/gitlab!59645
parents de29affc eccd7f79
......@@ -34,7 +34,6 @@ class BuildFinishedWorker # rubocop:disable Scalability/IdempotentWorker
# We execute these async as these are independent operations.
BuildHooksWorker.perform_async(build.id)
ExpirePipelineCacheWorker.perform_async(build.pipeline_id)
ChatNotificationWorker.perform_async(build.id) if build.pipeline.chat?
if build.failed?
......
......@@ -22,7 +22,6 @@ RSpec.describe BuildFinishedWorker do
end
expect(BuildHooksWorker).to receive(:perform_async)
expect(ExpirePipelineCacheWorker).to receive(:perform_async)
expect(ChatNotificationWorker).not_to receive(:perform_async)
expect(ArchiveTraceWorker).to receive(:perform_in)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment