Open khiav223577 opened 4 years ago
It is in the README ...or even ActiveJob backed Sidekiq
It is in the README ...or even ActiveJob backed Sidekiq
Yah, but only with those ActiveJobs backed Sidekiq.
BTW, I use this workaround currently:
# app/jobs/application_job.rb
class ApplicationJob < ActiveJob::Base
before_perform do
RequestStore.clear!
end
end
@khiav223577 that sounds like a good generic solution.
My suggestion would be make a PR to update the documentation with your code above.
It seems that there is a gem that can deal with
Sidekiq
, but what aboutActiveJob
?https://github.com/steveklabnik/request_store#using-with-sidekiq