protected function failJob($job, $e)
    {
        if ($job->isDeleted()) {
            return;
        }
        $job->delete();
        $job->failed($e);
    }
protected function failJob($job, $e)
    {
        if ($job->isDeleted()) {
            return;
        }
        $job->delete();
        $job->failed($e);
    }
protected function failJob ( $ job , $ e ) { if ( $ job -> isDeleted ( ) ) { return ; } $ job -> delete ( ) ; $ job -> failed ( $ e ) ; }
Mark the given job as failed and raise the relevant event.

@param  \Globlias\PuppetSkilled\Queue\Job\Base  $job
@param  \Exception  $e
@return void
Mark the given job as failed and raise the relevant event .