https://prefect.io logo
Title
b

Bradley Hurley

09/26/2022, 8:14 PM
Hi Prefect Experts - Im running 1.X of Prefect and run into the dreaded
"No heartbeat detected from the remote task"
issue a few times and its well documented here to consult https://discourse.prefect.io/t/flow-is-failing-with-an-error-message-no-heartbeat-detected-from-the-remote-task/79.
I didn’t see it explicitly stated, but is setting
flow.run_config = UniversalRun(env={"PREFECT__CLOUD__HEARTBEAT_MODE": "thread"})
or
[cloud]
heartbeat_mode = "thread" # ['process', 'thread', 'off']
supported when running Prefect on premise
z

Zanie

09/26/2022, 8:35 PM
I think the second option will work if you have that config file on the same machine as your agent
I think the first is clearer, though.
b

Bradley Hurley

09/26/2022, 8:37 PM
Thanks, I just wanted to confirm it wasn’t only respected when running cloud.
I guess I should have looked at the settings first.
z

Zanie

09/26/2022, 8:39 PM
Ah yes the ‘cloud’ key applies to both backends
It’s a holdover from before server was split out and open sourced and remains for backwards compatibility.
b

Bradley Hurley

09/26/2022, 8:40 PM
Thanks!