module ActiveJob::QueuePriority

Public Instance Methods

priority() click to toggle source

Returns the priority that the job will be created with

# File lib/active_job/queue_priority.rb, line 36
def priority
  if @priority.is_a?(Proc)
    @priority = instance_exec(&@priority)
  end
  @priority
end