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