2017-11-02 10:14:10 +00:00
|
|
|
class ClusterWaitForAppInstallationWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
include ClusterQueue
|
2017-11-02 17:55:02 +00:00
|
|
|
include ClusterApplications
|
2017-11-02 10:14:10 +00:00
|
|
|
|
2017-11-03 12:55:44 +00:00
|
|
|
INTERVAL = 10.seconds
|
2017-11-02 10:14:10 +00:00
|
|
|
TIMEOUT = 20.minutes
|
|
|
|
|
|
|
|
def perform(app_name, app_id)
|
2017-11-02 17:55:02 +00:00
|
|
|
find_application(app_name, app_id) do |app|
|
|
|
|
Clusters::Applications::CheckInstallationProgressService.new(app).execute
|
2017-11-02 10:14:10 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|