1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/lib/sidekiq
Phil Pirozhkov fc575fbb7e Allow Sidekiq retry options in ActiveJob
c685d6928c
has introduced an exception that is raised on an attempt to include
Sidekiq::Worker to an ActiveJob::Base descendant.

That was done in order to prevent options not supported by ActiveJob,
specifically `queue`. See https://github.com/mperham/sidekiq/issues/2424

Support for `set` was added later on, including the setting of `retry`
from ActiveJob.
d6538b0b4f

This change bridges the gap by allowing ActiveJob::Base descendants to
include `Sidekiq::Options` and use `retry` option of
`sidekiq_options`, and also `sidekiq_retry_in`, and
`sidekiq_retries_exhausted`.
2019-07-24 09:39:12 -07:00
..
extensions
middleware
testing
web
worker Allow Sidekiq retry options in ActiveJob 2019-07-24 09:39:12 -07:00
api.rb
cli.rb
client.rb
ctl.rb
delay.rb
exception_handler.rb
fetch.rb
job_logger.rb
job_retry.rb
launcher.rb
logger.rb
manager.rb
paginator.rb
processor.rb
rails.rb
redis_connection.rb
scheduled.rb
testing.rb Use options reader to fetch queue name in test 2019-07-23 11:21:02 -07:00
util.rb
version.rb
web.rb
worker.rb Allow Sidekiq retry options in ActiveJob 2019-07-24 09:39:12 -07:00