W3cubDocs

/Ruby on Rails 7.0

module ActiveJob::Execution::ClassMethods

Includes methods for executing and performing jobs instantly.

Public Instance Methods

perform_now(...) Show source
# File activejob/lib/active_job/execution.rb, line 17
def perform_now(...)
  job_or_instantiate(...).perform_now
end

Performs the job immediately.

MyJob.perform_now("mike")

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