2020-04-22 19:07:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
# Deprecated, to be removed in %14.0 as part of https://gitlab.com/groups/gitlab-org/-/epics/4280
|
2023-01-13 00:05:48 +05:30
|
|
|
# Also see https://gitlab.com/gitlab-org/gitlab/-/issues/366573
|
2020-04-22 19:07:51 +05:30
|
|
|
class ClusterUpdateAppWorker # rubocop:disable Scalability/IdempotentWorker
|
|
|
|
UpdateAlreadyInProgressError = Class.new(StandardError)
|
|
|
|
|
|
|
|
include ApplicationWorker
|
2021-10-27 15:23:28 +05:30
|
|
|
|
|
|
|
data_consistency :always
|
2020-04-22 19:07:51 +05:30
|
|
|
include ClusterQueue
|
|
|
|
include ClusterApplications
|
|
|
|
include ExclusiveLeaseGuard
|
|
|
|
|
|
|
|
sidekiq_options retry: 3, dead: false
|
2020-06-23 00:09:42 +05:30
|
|
|
loggable_arguments 0, 3
|
2020-04-22 19:07:51 +05:30
|
|
|
|
|
|
|
LEASE_TIMEOUT = 10.minutes.to_i
|
|
|
|
|
2023-01-13 00:05:48 +05:30
|
|
|
def perform(app_name, app_id, project_id, scheduled_time); end
|
2020-04-22 19:07:51 +05:30
|
|
|
end
|