ActiveJob::QueuePriority

module ActiveJob::QueuePriority

Public Instance Methods

priority() Show source

Returns the priority that the job will be created with

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

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部