2017-09-30 15:54:22 +00:00
|
|
|
class WaitForClusterCreationWorker
|
|
|
|
include Sidekiq::Worker
|
2017-10-03 17:33:37 +00:00
|
|
|
include ClusterQueue
|
2017-09-30 15:54:22 +00:00
|
|
|
|
|
|
|
def perform(cluster_id)
|
2017-10-13 17:21:23 +00:00
|
|
|
Clusters::Cluster.find_by_id(cluster_id).try do |cluster|
|
2017-10-30 15:18:15 +00:00
|
|
|
cluster.provider.try do |provider|
|
|
|
|
Clusters::Gcp::VerifyProvisionStatusService.new.execute(provider) if cluster.gcp?
|
2017-09-30 15:54:22 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|