123456789_123456789_123456789_123456789_123456789_

Module: ActiveJob::QueuePriority

Relationships & Source Files
Namespace Children
Modules:
Extension / Inclusion / Inheritance Descendants
Included In:
ActionMailer::DeliveryJob, ActionMailer::Parameterized::DeliveryJob, Base
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Defined in: activejob/lib/active_job/queue_priority.rb

Class Method Summary

Instance Method Summary

  • #priority

    Returns the priority that the job will be created with.

DSL Calls

included

[ GitHub ]


31
32
33
# File 'activejob/lib/active_job/queue_priority.rb', line 31

included do
  class_attribute :priority, instance_accessor: false, default: default_priority
end

Instance Method Details

#priority

Returns the priority that the job will be created with

[ GitHub ]

  
# File 'activejob/lib/active_job/queue_priority.rb', line 36

def priority
  if @priority.is_a?(Proc)
    @priority = instance_exec(&@priority)
  end
  @priority
end