Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#6370·sidekiq

Not thread local

Author: ioquatixCreated Jul 19, 2024Updated Jul 8, 2026

https://github.com/sidekiq/sidekiq/blob/0226e311d02de8ea77563c17c96a3d6527d0ec7f/lib/sidekiq/processor.rb#L74

This variable is not thread local.

I suggest you use a thread attribute, e.g. see https://github.com/rspec/rspec-support/pull/610 for what I suggest as the recommended approach: Thread.attr_accessor :sidekiq_capsule.

Source: sidekiq/sidekiq

View original on GitHubView discussion on GitHub