2020-11-24 15:15:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-12-11 22:18:48 +05:30
|
|
|
response = Sidekiq::Worker.skipping_transaction_check do
|
|
|
|
::Gitlab::DatabaseImporters::SelfMonitoring::Project::CreateService.new.execute
|
|
|
|
end
|
2020-11-24 15:15:51 +05:30
|
|
|
|
|
|
|
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
|