W3cubDocs

/Ruby on Rails 7.0

module ActiveJob::QueuePriority

Public Instance Methods

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

Returns the priority that the job will be created with

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.