ActiveJob::Core

module ActiveJob::Core

Public Class Methods

new(*arguments) Show source

Creates a new job instance. Takes the arguments that will be passed to the perform method.

# File activejob/lib/active_job/core.rb, line 59
def initialize(*arguments)
  @arguments  = arguments
  @job_id     = SecureRandom.uuid
  @queue_name = self.class.queue_name
end
登录查看完整内容