Skip to Content Skip to Search

module ActiveJob::QueuePriority

Public instance methods

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