Flowdock
method

queue_with_priority

Importance_1
v5.1.7 - Show latest stable - 0 notes - Class: ClassMethods
queue_with_priority(priority = nil, &block) public

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.

Show source
Register or log in to add new notes.