2019-02-07 16:40:55 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-02-19 13:09:10 -05:00
|
|
|
class ClusterUpgradeAppWorker # rubocop:disable Scalability/IdempotentWorker
|
2019-02-07 16:40:55 -05:00
|
|
|
include ApplicationWorker
|
|
|
|
include ClusterQueue
|
|
|
|
include ClusterApplications
|
|
|
|
|
2019-10-30 11:14:17 -04:00
|
|
|
worker_has_external_dependencies!
|
|
|
|
|
2019-02-07 16:40:55 -05:00
|
|
|
def perform(app_name, app_id)
|
|
|
|
find_application(app_name, app_id) do |app|
|
|
|
|
Clusters::Applications::UpgradeService.new(app).execute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|