gitlab-org--gitlab-foss/app/workers/cluster_creation_worker.rb

10 lines
243 B
Ruby

class ClusterCreationWorker
include Sidekiq::Worker
include DedicatedSidekiqQueue
def perform(cluster_id)
Gcp::Cluster.find_by_id(cluster_id).try do |cluster|
Ci::CreateGkeClusterService.new.execute(cluster)
end
end
end