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

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

        $attributes['status'] = 'free';
        array_unshift($this->queue, $attributes);
    }
public function reset($attributes)
    {
        foreach ($this->failed as $idx => $job) {
            if ($job['id'] == $attributes['id']) {
                unset($this->failed[$idx]);
                break;
            }
        }

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

        $attributes['status'] = 'free';
        array_unshift($this->queue, $attributes);
    }
public function reset ( $ attributes ) { foreach ( $ this -> failed as $ idx => $ job ) { if ( $ job [ 'id' ] == $ attributes [ 'id' ] ) { unset ( $ this -> failed [ $ idx ] ) ; break ; } } foreach ( $ this -> locked as $ idx => $ job ) { if ( $ job [ 'id' ] == $ attributes [ 'id' ] ) { unset ( $ this -> locked [ $ idx ] ) ; break ; } } $ attributes [ 'status' ] = 'free' ; array_unshift ( $ this -> queue , $ attributes ) ; }
Reset a job so it can be picked up again.
@param array $attributes
Reset a job so it can be picked up again .