Class: SidekiqUtils::Middleware::Server::AdditionalSerialization
- Inherits:
-
Object
- Object
- SidekiqUtils::Middleware::Server::AdditionalSerialization
- Defined in:
- lib/sidekiq_utils/middleware/server/additional_serialization.rb
Instance Method Summary collapse
Instance Method Details
#call(worker, job, queue) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/sidekiq_utils/middleware/server/additional_serialization.rb', line 5 def call(worker, job, queue) if job['class'] == "ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper" # this is handled in ActiveJob, as it would otherwise raise an # exception before it even gets here return yield end job['args'] = job['args'].map do |arg| ::SidekiqUtils::AdditionalSerialization.unwrap_argument(arg) end yield end |