• Yorick Peterse's avatar
    Forbid Sidekiq scheduling in transactions · 4edb505b
    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
    4edb505b
forbid_sidekiq_in_transactions.rb 857 Bytes