gitlab-org--gitlab-foss/app/workers/self_monitoring_project_del...

16 lines
383 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class SelfMonitoringProjectDeleteWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
sidekiq_options retry: 3
include ExclusiveLeaseGuard
include SelfMonitoringProjectWorker
def perform
try_obtain_lease do
Gitlab::DatabaseImporters::SelfMonitoring::Project::DeleteService.new.execute
end
end
end