Module: ActiveJob::QueuePriority
| Relationships & Source Files | |
| Namespace Children | |
|
Modules:
| |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
| |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
::ActiveSupport::Concern
|
|
| Defined in: | activejob/lib/active_job/queue_priority.rb |
Class Method Summary
::ActiveSupport::Concern - Extended
| class_methods | Define class methods from given block. |
| included | Evaluate given block in context of base class, so that you can write class macros here. |
| prepended | Evaluate given block in context of base class, so that you can write class macros here. |
| append_features, prepend_features | |
Instance Attribute Summary
- #default_priority rw Internal use only
Instance Method Summary
-
#priority
Returns the priority that the job will be created with.
DSL Calls
included
[ GitHub ]50 51 52
# File 'activejob/lib/active_job/queue_priority.rb', line 50
included do class_attribute :priority, instance_accessor: false, default: ActiveSupport::Ractors.shareable_proc { self.class.default_priority } end
Instance Attribute Details
#default_priority (rw)
This method is for internal use only.
[ GitHub ]
# File 'activejob/lib/active_job/queue_priority.rb', line 7
singleton_class.attr_accessor :default_priority # :nodoc:
Instance Method Details
#priority
Returns the priority that the job will be created with
# File 'activejob/lib/active_job/queue_priority.rb', line 55
def priority if @priority.is_a?(Proc) @priority = instance_exec(&@priority) end @priority end