Class: Ci::ExpirePipelineCacheService
- Inherits:
-
Object
- Object
- Ci::ExpirePipelineCacheService
- Defined in:
- app/services/ci/expire_pipeline_cache_service.rb
Defined Under Namespace
Classes: UrlHelpers
Instance Method Summary collapse
Instance Method Details
#execute(pipeline, delete: false) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/services/ci/expire_pipeline_cache_service.rb', line 10 def execute(pipeline, delete: false) store = Gitlab::EtagCaching::Store.new update_etag_cache(pipeline, store) if delete Gitlab::Cache::Ci::ProjectPipelineStatus.new(pipeline.project).delete_from_cache else Gitlab::Cache::Ci::ProjectPipelineStatus.update_for_pipeline(pipeline) end end |