https://prefect.io logo
#prefect-ui
Title
# prefect-ui
t

Tim Enders

06/22/2021, 4:34 PM
How do I get around a Flow failing due to the "failed to detect heartbeat" on Prefect Cloud? This seems to be triggered by a long running task.
k

Kevin Kho

06/22/2021, 4:37 PM
Hi @Tim Enders, you can disable heartbeats for the flow and some people do use this for long-running flows. You’ll find it in the Flow Settings
d

davzucky

06/22/2021, 10:51 PM
Could the disable heartbeat be set on the task level? This would allow more granular setup
k

Kevin Kho

06/22/2021, 10:57 PM
Funny you messaged here. I was revisiting that time you said Mongo was causing the “failed to detect heartbeat” and you had to move it to its own Flow to run. I chatted with the team specifically about that. The weird thing is that the heartbeat is really just checking if the task can respond from another process. If the Flow fails, it should indicate that task itself died.
It’s very strange Mongo could lock that, though I have also seen the reports reports with long API calls
d

davzucky

06/22/2021, 11:45 PM
Let me do a deep debugging to see what is getting locked
k

Kevin Kho

06/23/2021, 12:38 AM
Would love to learn what you find.
3 Views