Module: ActiveJob::QueuePriority::ClassMethods

Defined in:
lib/solargraph/rails/annotations/active_job.rb

Overview

Includes the ability to override the default queue priority.

Instance Method Summary collapse

Instance Method Details

#queue_with_priority(priority = nil, &block) ⇒ void

This method returns an undefined value.

Specifies the priority of the queue to create the job with.

class PublishToFeedJob < ActiveJob::Base
  queue_with_priority 50

  def perform(post)
    post.to_feed!
  end
end

Specify either an argument or a block.



273
# File 'lib/solargraph/rails/annotations/active_job.rb', line 273

def queue_with_priority(priority = nil, &block); end