class method
self.new
Ruby on Rails 7.2.3
Since v4.2.9Signature
self.new(*arguments)
Creates a new job instance. Takes the arguments that will be passed to the perform method.
Parameters
-
argumentsrest
Source
# File activejob/lib/active_job/core.rb, line 93
def initialize(*arguments)
@arguments = arguments
@job_id = SecureRandom.uuid
@queue_name = self.class.queue_name
@scheduled_at = nil
@priority = self.class.priority
@executions = 0
@exception_executions = {}
@timezone = Time.zone&.name
end
Defined in activejob/lib/active_job/core.rb line 93
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveJob::Core