method
discard
v8.1.1 -
Show latest stable
- Class:
ActiveJob::StructuredEventSubscriber
discard(event)public
No documentation available.
# File activejob/lib/active_job/structured_event_subscriber.rb, line 137
def discard(event)
job = event.payload[:job]
exception = event.payload[:error]
emit_event("active_job.discarded",
job_class: job.class.name,
job_id: job.job_id,
exception_class: exception.class.name,
exception_message: exception.message
)
end