public static function onFailure(\Exception $e, \Resque_Job $job)
    {
        /** @var JobBase $failedJob */
        $failedJob = $job->getInstance();
        $failedJob->errorLog('Caught exception in '. get_called_class() . ': ' . $e->getMessage());
        $failedJob->getStat()->increment($failedJob->getStatFailureIncrementKey());
        throw $e;
    }
public static function onFailure(\Exception $e, \Resque_Job $job)
    {
        /** @var JobBase $failedJob */
        $failedJob = $job->getInstance();
        $failedJob->errorLog('Caught exception in '. get_called_class() . ': ' . $e->getMessage());
        $failedJob->getStat()->increment($failedJob->getStatFailureIncrementKey());
        throw $e;
    }
public static function onFailure ( \ Exception $ e , \ Resque_Job $ job ) { /** @var JobBase $failedJob */ $ failedJob = $ job -> getInstance ( ) ; $ failedJob -> errorLog ( 'Caught exception in ' . get_called_class ( ) . ': ' . $ e -> getMessage ( ) ) ; $ failedJob -> getStat ( ) -> increment ( $ failedJob -> getStatFailureIncrementKey ( ) ) ; throw $ e ; }
Resque event when a job failures

@param \Exception  $e   Exception
@param \Resque_Job $job The failed job
@return void
Resque event when a job failures