Class: ClusterWaitForAppInstallationWorker

Inherits:
Object
  • Object
show all
Includes:
ApplicationWorker, ClusterApplications, ClusterQueue
Defined in:
app/workers/cluster_wait_for_app_installation_worker.rb

Overview

rubocop:disable Scalability/IdempotentWorker

Constant Summary collapse

INTERVAL =
10.seconds
TIMEOUT =
20.minutes

Constants included from ApplicationWorker

ApplicationWorker::LOGGING_EXTRA_KEY

Constants included from WorkerAttributes

WorkerAttributes::NAMESPACE_WEIGHTS, WorkerAttributes::VALID_RESOURCE_BOUNDARIES, WorkerAttributes::VALID_URGENCIES

Instance Method Summary collapse

Methods included from Gitlab::SidekiqVersioning::Worker

#job_version

Methods included from WorkerContext

#with_context

Instance Method Details

#perform(app_name, app_id) ⇒ Object


15
16
17
18
19
# File 'app/workers/cluster_wait_for_app_installation_worker.rb', line 15

def perform(app_name, app_id)
  find_application(app_name, app_id) do |app|
    Clusters::Applications::CheckInstallationProgressService.new(app).execute
  end
end