Interface Resque_Failure_Interface

Implemented byResque_Failure_Redis

Interface that all failure backends should implement.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Initialize a failed job class and save it (where appropriate). Resque_Failure_Interface

Method Details

__construct() public abstract method

Initialize a failed job class and save it (where appropriate).

public abstract void __construct ( $payload, $exception, $worker, $queue )
$payload object

Object containing details of the failed job.

$exception object

Instance of the exception that was thrown by the failed job.

$worker object

Instance of Resque_Worker that received the job.

$queue string

The name of the queue the job was fetched from.