Skip to content

Error undefined method `perform' with ActiveJob::Base #124

Open
@redseafan

Description

Hi,
I have been trying to implement resque-unique_by_arity in our rails application.
As per the readme I have configured the gem after the perform class method

class MyUniqueJob < ActiveJob::Base
  queue_as :default

  def perform(args)
    # perform method here
  end

  include Resque::Plugins::UniqueByArity.new(
    arity_for_uniqueness: 1,
    unique_at_runtime: true,
    unique_in_queue: true
  )
end

I still get the error undefined method `perform' for class `#<Class:MyUniqueJob>'
Is this gem compatible with ActiveJob?
Thanks!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions