2020-03-13 15:44:24 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-04-08 14:13:33 +05:30
|
|
|
class SelfMonitoringProjectCreateWorker # rubocop:disable Scalability/IdempotentWorker
|
2020-03-13 15:44:24 +05:30
|
|
|
include ApplicationWorker
|
|
|
|
include ExclusiveLeaseGuard
|
|
|
|
include SelfMonitoringProjectWorker
|
|
|
|
|
|
|
|
def perform
|
|
|
|
try_obtain_lease do
|
|
|
|
Gitlab::DatabaseImporters::SelfMonitoring::Project::CreateService.new.execute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|