mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
0e64348cca
Currently `wrapped` is a String. Instead pass Class so that Sidekiq can get access to the ActiveJob and its configuration without having to constantize. I verified that `JobClass.to_s` == `"JobClass"` so serialization to JSON should not be affected. ```ruby > JSON.dump({"wrapped" => SomeJob}) => "{\"wrapped\":\"SomeJob\"}" ``` By having access to the ActiveJob class, Sidekiq can get access to any `sidekiq_options` which have been set on that ActiveJob type and serialize those options into Redis. https://github.com/mperham/sidekiq/blob/master/Changes.md#60 |
||
---|---|---|
.. | ||
active_job | ||
rails/generators/job | ||
active_job.rb |