Flow run heartbeat events delayed until run completion
warningavailabilityUpdated May 1, 2025(via Exa)
Sources
Technologies:
How to detect:
Flow run heartbeats occur at correct intervals but are buffered and only received by Prefect server in bulk at the end of the flow run, causing hours of delay between occurrence and receipt. Affects automations set up on prefect.flow-run.heartbeat events. Observed in Prefect 3.2 and 3.3 clients.
Recommended action:
Use EventsClient directly with checkpoint_every=1 instead of emit_event in Runner context to ensure events are sent immediately. Fixed in PR #17986.