https://prefect.io logo
Title
p

Prasanth Kothuri

03/09/2022, 1:05 PM
Hello, for a prefect task (which queries mysql database with pymysql) I am getting this error, is there a way to increase the timeout ?
No heartbeat detected from the remote task; marking the run as failed.
a

Anna Geller

03/09/2022, 1:09 PM
Regarding setting a timeout for a task run, you can set it using:
@task(log_stdout=True, timeout=300)
Regarding your heartbeat error, this thread provides a possible solution: https://discourse.prefect.io/t/flow-is-failing-with-an-error-message-no-heartbeat-detected-from-the-remote-task/79