An error occurred while loading the file. Please try again.
Select Git revision
forbid_sidekiq_in_transactions.rb
-
Yorick Peterse authored
Scheduling jobs in transactions can lead to race conditions where a job runs before a transaction has been committed. The added initializer ensures the various Sidekiq scheduling methods raise an error when called inside a transaction. Fixes #27233
Yorick Peterse authoredScheduling jobs in transactions can lead to race conditions where a job runs before a transaction has been committed. The added initializer ensures the various Sidekiq scheduling methods raise an error when called inside a transaction. Fixes #27233