def METHOD_NAME(self, workerName, state):
    """
    Update a worker's heartbeat and its state
    """
    try:
        self.updateWorker.execute(workerName, state, conn=self.getDBConn(),
                                  transaction=self.existingTransaction())
    except Exception as ex:
        self.logger.warning("Heartbeat update failed! Wait for the next time...:\n%s", str(ex))