Skip to Content Skip to Search
v7.1.0
module ActiveJob::QueuePriority
Methods
P

Public instance methods

priority()

Permalink

Returns the priority that the job will be created with

Source code GitHub
# File activejob/lib/active_job/queue_priority.rb, line 53
def priority
  if @priority.is_a?(Proc)
    @priority = instance_exec(&@priority)
  end
  @priority
end
Namespace
Definition files