Closed polysiya closed 8 years ago
When I tried to include ActiveJob::Retry like below.
ActiveJob::Retry
class MyJob < ApplicationJob include ActiveJob::Retry.new(strategy: :exponential, limit: 25) ...
An exception like below happened.
NoMethodError: undefined method `name' for #<ActiveJob::QueueAdapters::SidekiqAdapter:0x007f9c7c00bd68>
ActiveJob::Base.queue_adapter.name doesn't seem to return Class any more. It returns an instance and doesn't have #name.
ActiveJob::Base.queue_adapter.name
Class
#name
https://github.com/rails/rails/blob/1f8558fa2707e7707dcfef0aba94de9afcd05d3a/activejob/lib/active_job/queue_adapter.rb
Thanks for the bug report @polysiya ! #40 fixes this, and also makes Travis run tests against Rails 5.0 and 4.2 so this can't happen again.
When I tried to include
ActiveJob::Retry
like below.An exception like below happened.
ActiveJob::Base.queue_adapter.name
doesn't seem to returnClass
any more. It returns an instance and doesn't have#name
.https://github.com/rails/rails/blob/1f8558fa2707e7707dcfef0aba94de9afcd05d3a/activejob/lib/active_job/queue_adapter.rb