Module: ActiveJob::Executing

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_job/executing.rb

Overview

TODO: These (or a version of them) should be moved to ActiveJob::Core and related concerns when upstreamed.

Instance Method Summary collapse

Instance Method Details

#discardObject



23
24
25
# File 'lib/active_job/executing.rb', line 23

def discard
  jobs_relation_for_discarding.discard_job(self)
end

#dispatchObject



27
28
29
# File 'lib/active_job/executing.rb', line 27

def dispatch
  ActiveJob.jobs.dispatch_job(self)
end

#retryObject



19
20
21
# File 'lib/active_job/executing.rb', line 19

def retry
  ActiveJob.jobs.failed.retry_job(self)
end