Skip to content

Using ::ActiveJob::QueueAdapters::AbstractAdapter breaks compatibility with rails 6 #1246

@jklimke

Description

@jklimke

Hi.

in Version 4.2 the active job adapter was included in Delayed Job itself. My Application is still using rails 6 which does not include the ::ActiveJob::QueueAdapters::AbstractAdapter that is currently the base class of the DelayedJobAdapter class that is included in delayed job 4.2.

See: https://github.com/rails/rails/tree/v6.1.7.10/activejob/lib/active_job/queue_adapters

Usage as base class here:

class DelayedJobAdapter < ::ActiveJob::QueueAdapters::AbstractAdapter

Old version of DelayedJobAdapter in Rails 6:

https://github.com/rails/rails/blob/v6.1.7.10/activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb

Possiblilty 1:

  • define the base class when not defined by rails
    Possibilty 2:
  • add the breaking compatibility with rails 6 to the docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions