blob: 35bc3edbd707d526722e71cecccfd7f9c756cdcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# frozen_string_literal: true
response = Sidekiq::Worker.skipping_transaction_check do
result = ::Gitlab::DatabaseImporters::SelfMonitoring::Project::CreateService.new.execute
next result unless result[:status] == :success
AuthorizedProjectUpdate::ProjectRecalculateService.new(result[:project]).execute
result
end
if response[:status] == :success
puts "Successfully created self-monitoring project."
else
puts "Could not create self-monitoring project due to error: '#{response[:message]}'"
puts "Check logs for more details."
end
|