Thread
#prefect-ui
    Tim Enders

    Tim Enders

    1 year ago
    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.
    Kevin Kho

    Kevin Kho

    1 year ago
    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
    davzucky

    davzucky

    1 year ago
    Could the disable heartbeat be set on the task level? This would allow more granular setup
    Kevin Kho

    Kevin Kho

    1 year ago
    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
    davzucky

    davzucky

    1 year ago
    Let me do a deep debugging to see what is getting locked
    Kevin Kho

    Kevin Kho

    1 year ago
    Would love to learn what you find.