summaryrefslogtreecommitdiff
path: root/app/workers/wait_for_cluster_creation_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/wait_for_cluster_creation_worker.rb')
-rw-r--r--app/workers/wait_for_cluster_creation_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/wait_for_cluster_creation_worker.rb b/app/workers/wait_for_cluster_creation_worker.rb
index f72bf409b20..eab340070e1 100644
--- a/app/workers/wait_for_cluster_creation_worker.rb
+++ b/app/workers/wait_for_cluster_creation_worker.rb
@@ -7,7 +7,7 @@ class WaitForClusterCreationWorker
TIMEOUT = 20.minutes
def perform(cluster_id)
- Gcp::Cluster.find_by_id(cluster_id).tap do |cluster|
+ Gcp::Cluster.find_by_id(cluster_id).try do |cluster|
Ci::FetchGcpOperationService.new.execute(cluster) do |operation|
case operation.status
when 'RUNNING'