public function fail($attributes)
    {
        foreach ($this->locked as $idx => $job) {
            if ($job['id'] == $attributes['id']) {
                unset($this->locked[$idx]);
                break;
            }
        }

        $attributes['status'] = 'failed';
        $this->failed[] = $attributes;
    }
public function fail($attributes)
    {
        foreach ($this->locked as $idx => $job) {
            if ($job['id'] == $attributes['id']) {
                unset($this->locked[$idx]);
                break;
            }
        }

        $attributes['status'] = 'failed';
        $this->failed[] = $attributes;
    }
public function fail ( $ attributes ) { foreach ( $ this -> locked as $ idx => $ job ) { if ( $ job [ 'id' ] == $ attributes [ 'id' ] ) { unset ( $ this -> locked [ $ idx ] ) ; break ; } } $ attributes [ 'status' ] = 'failed' ; $ this -> failed [ ] = $ attributes ; }
Mark a job as failed.
@param array $attributes
Mark a job as failed .