Method: ActiveJob::Core#initialize
- Defined in:
- activejob/lib/active_job/core.rb
#initialize(*arguments) ⇒ Object
Creates a new job instance. Takes the arguments that will be passed to the perform method.
93 94 95 96 97 98 99 100 101 102 |
# 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 |