2021-03-08 18:12:59 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Namespaces
|
|
|
|
class OnboardingPipelineCreatedWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
2021-10-27 15:23:28 +05:30
|
|
|
data_consistency :always
|
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
sidekiq_options retry: 3
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
feature_category :subgroups
|
2021-06-08 01:23:25 +05:30
|
|
|
tags :exclude_from_kubernetes
|
2021-03-08 18:12:59 +05:30
|
|
|
urgency :low
|
|
|
|
|
|
|
|
deduplicate :until_executing
|
|
|
|
idempotent!
|
|
|
|
|
|
|
|
def perform(namespace_id)
|
|
|
|
namespace = Namespace.find_by_id(namespace_id)
|
|
|
|
return unless namespace
|
|
|
|
|
|
|
|
OnboardingProgressService.new(namespace).execute(action: :pipeline_created)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|