1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activejob/lib
Mike Perham 0e64348cca
Allow Sidekiq access to the underlying Job class
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
2019-09-16 10:17:14 -07:00
..
active_job Allow Sidekiq access to the underlying Job class 2019-09-16 10:17:14 -07:00
rails/generators/job Strip duplicated suffixes more strictly 2018-04-22 14:30:07 +09:00
active_job.rb Bump license years for 2019 2018-12-31 10:24:38 +07:00