ActiveJob::Execution::ClassMethods

module ActiveJob::Execution::ClassMethods

Includes methods for executing and performing jobs instantly.

Public Instance Methods

perform_now(*args) Show source

Performs the job immediately.

MyJob.perform_now("mike")
# File activejob/lib/active_job/execution.rb, line 15
def perform_now(*args)
  job_or_instantiate(*args).perform_now
end

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部