https://prefect.io logo
#prefect-community
Title
# prefect-community
l

Liezl Puzon

03/11/2022, 6:20 AM
What is the max timeout for a prefect task? I have a task that will run for 2-5 mins. I couldn’t find anything on the pricing page, google, or discord when I searched for “max timeout.” Is there a better term to search for?
k

Kevin Kho

03/11/2022, 6:21 AM
I think there is none actually.
🙌 1
l

Liezl Puzon

03/11/2022, 6:22 AM
Do I have to do anything to make zombie killer not kill my job if it’s still running 2+ mins? “The
Zombie Killer
service is responsible for handling zombies, which Prefect defines as tasks that claim to be running but haven’t updated their heartbeat in the past 2 minutes (Prefect Cloud) or 10 minutes (Prefect Server).”
Or will my task be automatically detected as “not a zombie” if it’s consuming resources as normal?
also @Kevin Kho that’s pretty wild, what’s stopping people from running really long-running tasks on prefect cloud? if the pricing is per task and not per CPU-second?
k

Kevin Kho

03/11/2022, 6:23 AM
No because the task is deployed with a heartbeat and the heartbeat should signal that there is still communication. But the default heartbeat can sometimes die for long processes. If it does, you can look here. But this is more like 1 hour
👍 1
We don’t host compute because you provide your own so we don’t care about how long a task takes because it’s running on your infrastructure
👀 1
l

Liezl Puzon

03/11/2022, 6:24 AM
gotcha, so the timeout would only be due to some kind of flakiness from the worker (not due to my job, or maybe because my job destroyed the server somehow )
k

Kevin Kho

03/11/2022, 6:24 AM
Each task just sends API calls to update it’s state so we practically charge on API calls
Yes exactly
l

Liezl Puzon

03/11/2022, 6:25 AM
ohhh I didn’t realize we provide our own compute, my bad. so we shoulder the infra cost
thanks for your help!!
k

Kevin Kho

03/11/2022, 6:25 AM
Yeah this is called the hybrid model in our docs
5 Views