src/Jobs/BaseJob.php
public function heartbeat(array $data = []): float
    {
        try {
            $this->expires = $this->client->heartbeat(
                $this->jid,
                $this->worker,
                json_encode($data, JSON_UNESCAPED_SLASHES)
            );
        } catch (QlessException $e) {
            throw new LostLockException($e->getMessage(), 'Heartbeat', $this->jid, $e->getCode(), $e);
        }

        return $this->expires;
    }
public function heartbeat(array $data = []): float
    {
        try {
            $this->expires = $this->client->heartbeat(
                $this->jid,
                $this->worker,
                json_encode($data, JSON_UNESCAPED_SLASHES)
            );
        } catch (QlessException $e) {
            throw new LostLockException($e->getMessage(), 'Heartbeat', $this->jid, $e->getCode(), $e);
        }

        return $this->expires;
    }
public function heartbeat ( array $ data = [ ] ) : float { try { $ this -> expires = $ this -> client -> heartbeat ( $ this -> jid , $ this -> worker , json_encode ( $ data , JSON_UNESCAPED_SLASHES ) ) ; } catch ( QlessException $ e ) { throw new LostLockException ( $ e -> getMessage ( ) , 'Heartbeat' , $ this -> jid , $ e -> getCode ( ) , $ e ) ; } return $ this -> expires ; }
Set the timestamp of the new heartbeat.

@param  array $data
@return float

@throws LostLockException
Set the timestamp of the new heartbeat .