method

interrupt

rails latest stable - Class: ActiveJob::StructuredEventSubscriber

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

interrupt(event)
public

No documentation available.

# File activejob/lib/active_job/structured_event_subscriber.rb, line 149
    def interrupt(event)
      job = event.payload[:job]
      description = event.payload[:description]
      reason = event.payload[:reason]

      emit_event("active_job.interrupt",
        job_class: job.class.name,
        job_id: job.job_id,
        description: description,
        reason: reason,
      )
    end