Hello, for a prefect task (which queries mysql dat...
# ask-community
p
Hello, for a prefect task (which queries mysql database with pymysql) I am getting this error, is there a way to increase the timeout ?
Copy code
No heartbeat detected from the remote task; marking the run as failed.
a
Regarding setting a timeout for a task run, you can set it using:
Copy code
@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