debian-mirror-gitlab/app/workers/namespaces/onboarding_progress_worker.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
535 B
Ruby
Raw Normal View History

2021-04-17 20:07:23 +05:30
# frozen_string_literal: true
module Namespaces
class OnboardingProgressWorker
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-11-18 22:05:49 +05:30
feature_category :onboarding
2021-10-27 15:23:28 +05:30
worker_resource_boundary :cpu
2021-04-17 20:07:23 +05:30
urgency :low
deduplicate :until_executed
idempotent!
def perform(namespace_id, action)
namespace = Namespace.find_by_id(namespace_id)
return unless namespace && action
OnboardingProgressService.new(namespace).execute(action: action.to_sym)
end
end
end