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

10 lines
235 B
Ruby

class ClusterProvisionWorker
include Sidekiq::Worker
include ClusterQueue
def perform(cluster_id)
Gcp::Cluster.find_by_id(cluster_id).try do |cluster|
Ci::ProvisionClusterService.new.execute(cluster)
end
end
end