use pipeline to set heartbeat