Class: RocketJob::Jobs::ActiveJob

Inherits:
RocketJob::Job show all
Defined in:
lib/rocket_job/jobs/active_job.rb

Overview

Used to wrap an Active Job

Instance Method Summary collapse

Methods included from Plugins::Job::Throttle

#throttle_filter_class, #throttle_filter_id

Methods included from Plugins::Job::Worker

#fail_on_exception!, #perform_now, #rocket_job_active_workers, #rocket_job_work

Methods included from Plugins::Job::StateMachine

#pausable?

Methods included from Plugins::Job::Persistence

#reload

Methods included from Plugins::Job::Model

#as_json, #collect_nil_output?, #collect_output?, #duration, #expired?, #run_now!, #scheduled?, #scheduled_at, #seconds, #sleeping?, #status, #worker_count, #worker_names, #worker_on_server?

Instance Method Details

#performObject



10
11
12
# File 'lib/rocket_job/jobs/active_job.rb', line 10

def perform
  ::ActiveJob::Base.execute data
end