Skip sidekiq transaction check in development seed
What does this MR do and why?
Skip sidekiq transaction check in development seed. It doesn't matter whether that worker runs sucessfully, or not.
This worker was introduced in e5f31632, but 20_nested_groups seed was missed because it was optional.
Fixes the error below:
== Seed from /Users/kushal/Code/GL/gitlab/db/fixtures/development/20_nested_groups.rb
rake aborted!
Sidekiq::Worker::EnqueueFromTransactionError: `Namespaces::InviteTeamEmailWorker.perform_in` cannot be called inside a transaction as this can lead to
race conditions when the worker runs before the transaction is committed and
tries to access a model that has not been saved yet.
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Thong Kuah