instance method
priority
Ruby on Rails 8.1.2
Since v5.2.8.1Signature
priority()
Returns the priority that the job will be created with
Source
# File activejob/lib/active_job/queue_priority.rb, line 53
def priority
if @priority.is_a?(Proc)
@priority = instance_exec(&@priority)
end
@priority
end
Defined in activejob/lib/active_job/queue_priority.rb line 53
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveJob::QueuePriority