Module: ActiveJob::QueuePriority
- Extended by:
- ActiveSupport::Concern
- Included in:
- Base
- Defined in:
- activejob/lib/active_job/queue_priority.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#priority ⇒ Object
Returns the priority that the job will be created with.
Methods included from ActiveSupport::Concern
append_features, class_methods, extended, included
Instance Method Details
#priority ⇒ Object
Returns the priority that the job will be created with
36 37 38 39 40 41 |
# File 'activejob/lib/active_job/queue_priority.rb', line 36 def priority if @priority.is_a?(Proc) @priority = instance_exec(&@priority) end @priority end |