Includes the ability to override the default queue priority.
Methods
Instance Public methods
queue_with_priority(priority = nil, &block)
Link
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.