Class: SidekiqUtils::Middleware::Client::AdditionalSerialization
- Inherits:
-
Object
- Object
- SidekiqUtils::Middleware::Client::AdditionalSerialization
- Defined in:
- lib/sidekiq_utils/middleware/client/additional_serialization.rb
Instance Method Summary collapse
Instance Method Details
#call(worker_class, job, queue, redis_pool) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/sidekiq_utils/middleware/client/additional_serialization.rb', line 5 def call(worker_class, job, queue, redis_pool) 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.wrap_argument(arg) end yield end |