2018-06-27 07:23:28 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-02-19 18:09:10 +00:00
|
|
|
class ClusterWaitForIngressIpAddressWorker # rubocop:disable Scalability/IdempotentWorker
|
2018-02-12 03:22:15 +00:00
|
|
|
include ApplicationWorker
|
|
|
|
include ClusterQueue
|
|
|
|
include ClusterApplications
|
|
|
|
|
2019-10-30 15:14:17 +00:00
|
|
|
worker_has_external_dependencies!
|
|
|
|
|
2018-02-25 01:46:16 +00:00
|
|
|
def perform(app_name, app_id)
|
2018-02-12 03:22:15 +00:00
|
|
|
find_application(app_name, app_id) do |app|
|
2018-02-22 22:08:12 +00:00
|
|
|
Clusters::Applications::CheckIngressIpAddressService.new(app).execute
|
2018-02-12 03:22:15 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|