Class: DeferredRequest::DeferredRequestJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- DeferredRequest::DeferredRequestJob
- Defined in:
- app/jobs/deferred_request/deferred_request_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(*args) ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/jobs/deferred_request/deferred_request_job.rb', line 5 def perform(*args) id = args[0] request = DeferredRequest.find(id) request.perform! rescue ActiveRecord::RecordNotFound Rails.logger.error("DeferredRequest::DeferredRequestJob: Could not find DeferredRequest with id: #{id}") end |