I'm using Prefect Cloud and have a problem with a ...
# ask-community
c
I'm using Prefect Cloud and have a problem with a flow that takes a long time to run (a lot of heavy processing). Is there a way to send a heartbeat (in my code) to ensure that the flow is not marked as Failed ?
k
Hey @Chris McClellan, do you have some hardware that spins up and down? The Prefect heartbeat is enabled by default, but that does not keep your flow alive, it just checks that your flow is alive. A long run should be fine as long as the code still keeps going. What is the step that is taking long? Could you inject some more logging in there?
c
Possibly - I'm doing some further testing to find out the real cause of the error 😞 The long step is processing a lot of JSON and converting into CSV format for injection into a database