summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2018-03-01 18:14:53 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-03-01 18:14:53 +0000
commit119cdf3b3b56aa3c237b070ffde856f09992a8a1 (patch)
tree02e6cd5efb2a7f2f2247da0ca811ef70c54f40a9 /app/workers
parent56e106d47f76c8692bfc2acdd018f5b2d11afd95 (diff)
parentbb41a889487463f626796a390148ae7870c16824 (diff)
downloadgitlab-ce-webpack-registry.tar.gz
Merge branch 'master' into 'webpack-registry'webpack-registry
# Conflicts: # config/webpack.config.js
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/all_queues.yml1
-rw-r--r--app/workers/cluster_wait_for_ingress_ip_address_worker.rb11
2 files changed, 12 insertions, 0 deletions
diff --git a/app/workers/all_queues.yml b/app/workers/all_queues.yml
index a9415410f8a..328db19be29 100644
--- a/app/workers/all_queues.yml
+++ b/app/workers/all_queues.yml
@@ -24,6 +24,7 @@
- gcp_cluster:cluster_wait_for_app_installation
- gcp_cluster:wait_for_cluster_creation
- gcp_cluster:check_gcp_project_billing
+- gcp_cluster:cluster_wait_for_ingress_ip_address
- github_import_advance_stage
- github_importer:github_import_import_diff_note
diff --git a/app/workers/cluster_wait_for_ingress_ip_address_worker.rb b/app/workers/cluster_wait_for_ingress_ip_address_worker.rb
new file mode 100644
index 00000000000..8ba5951750c
--- /dev/null
+++ b/app/workers/cluster_wait_for_ingress_ip_address_worker.rb
@@ -0,0 +1,11 @@
+class ClusterWaitForIngressIpAddressWorker
+ include ApplicationWorker
+ include ClusterQueue
+ include ClusterApplications
+
+ def perform(app_name, app_id)
+ find_application(app_name, app_id) do |app|
+ Clusters::Applications::CheckIngressIpAddressService.new(app).execute
+ end
+ end
+end