Commit 10a04328 authored by Andy Soiron's avatar Andy Soiron

Merge branch 'skip-sidekiq-txn-check-20' into 'master'

Skip sidekiq transaction check in development seed

See merge request gitlab-org/gitlab!74277
parents 2e8cd2ed ef64495f
...@@ -23,8 +23,9 @@ Sidekiq::Testing.inline! do ...@@ -23,8 +23,9 @@ Sidekiq::Testing.inline! do
full_path = url.sub('https://android.googlesource.com/', '') full_path = url.sub('https://android.googlesource.com/', '')
full_path = full_path.sub(/\.git\z/, '') full_path = full_path.sub(/\.git\z/, '')
full_path, _, project_path = full_path.rpartition('/') full_path, _, project_path = full_path.rpartition('/')
group = Group.find_by_full_path(full_path) || group = Sidekiq::Worker.skipping_transaction_check do
Groups::NestedCreateService.new(user, group_path: full_path).execute Group.find_by_full_path(full_path) || Groups::NestedCreateService.new(user, group_path: full_path).execute
end
params = { params = {
import_url: url, import_url: url,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment