Commit 8453d983 authored by Stan Hu's avatar Stan Hu

Skip transaction check for seeding burndown charts

The seed-fu gem wraps all seeds in a transaction:
https://github.com/mbleigh/seed-fu/blob/34c054c914858c3d7685f83d16dea5c0e2114561/lib/seed-fu/runner.rb#L35.
We can skip the Sidekiq transaction check for seeding test fixtures.

Closes https://gitlab.com/gitlab-org/gitlab-development-kit/issues/351
parent f850b1bd
...@@ -9,18 +9,20 @@ class Gitlab::Seeder::Burndown ...@@ -9,18 +9,20 @@ class Gitlab::Seeder::Burndown
def seed! def seed!
Timecop.travel 10.days.ago Timecop.travel 10.days.ago
Sidekiq::Testing.inline! do Sidekiq::Worker.skipping_transaction_check do
create_milestone Sidekiq::Testing.inline! do
puts '.' create_milestone
puts '.'
create_issues create_issues
puts '.' puts '.'
close_issues close_issues
puts '.' puts '.'
reopen_issues reopen_issues
puts '.' puts '.'
end
end end
Timecop.return Timecop.return
......
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