2020-10-15 15:08:45 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Deployments
|
|
|
|
class DropOlderDeploymentsWorker # rubocop:disable Scalability/IdempotentWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
2021-07-21 12:09:35 +00:00
|
|
|
data_consistency :always
|
|
|
|
|
2021-04-30 18:10:09 +00:00
|
|
|
sidekiq_options retry: 3
|
|
|
|
|
2020-10-15 15:08:45 +00:00
|
|
|
queue_namespace :deployment
|
|
|
|
feature_category :continuous_delivery
|
|
|
|
|
|
|
|
def perform(deployment_id)
|
|
|
|
Deployments::OlderDeploymentsDropService.new(deployment_id).execute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|