protected function markJobAsCompleted($pipe, $id, $failed)
    {
        $failed
            ? $pipe->hmset($id, ['status' => 'failed'])
            : $pipe->hmset($id, ['status' => 'completed', 'completed_at' => str_replace(',', '.', microtime(true))]);

        $pipe->expireat($id, Chronos::now()->addMinutes($this->recentJobExpires)->getTimestamp());
    }
protected function markJobAsCompleted($pipe, $id, $failed)
    {
        $failed
            ? $pipe->hmset($id, ['status' => 'failed'])
            : $pipe->hmset($id, ['status' => 'completed', 'completed_at' => str_replace(',', '.', microtime(true))]);

        $pipe->expireat($id, Chronos::now()->addMinutes($this->recentJobExpires)->getTimestamp());
    }
protected function markJobAsCompleted ( $ pipe , $ id , $ failed ) { $ failed ? $ pipe -> hmset ( $ id , [ 'status' => 'failed' ] ) : $ pipe -> hmset ( $ id , [ 'status' => 'completed' , 'completed_at' => str_replace ( ',' , '.' , microtime ( true ) ) ] ) ; $ pipe -> expireat ( $ id , Chronos :: now ( ) -> addMinutes ( $ this -> recentJobExpires ) -> getTimestamp ( ) ) ; }
Mark a given job as completed and set it to expire.

@param  \Predis\Pipeline\Pipeline  $pipe
@param  string  $id
@param  bool  $failed
@return void
Mark a given job as completed and set it to expire .