Hi Prefect! 🙂 I'm updating my flows from 1.X to 2.X. Is there a way to set a task timeout as we had in the previous versions? thanks a lot!
✅ 1
a
Anna Geller
08/29/2022, 11:07 AM
You can currently set
timeout_seconds
on your flow decorator, so if you convert this task to a subflow, you can already solve the issue this way.
Setting timeout on a task is a reasonable request - let's open an issue to investigate whether we can add that - I believe this would be hard to do with async and various distributed task runners like Dask or Ray, but Michael can estimate that best - you can follow up on the issue. Thanks for bringing this up and until then you can set a timeout on a subflow
@Marvin open "Consider adding
pattern with futures but it seems much easier to just configure timeout for all tasks.
a
Anna Geller
09/16/2022, 11:25 AM
I'd encourage you to add any additional findings directly to the GitHub issue https://github.com/PrefectHQ/prefect/issues/6600 this way, engineers who know this well can answer and see how we can add timeout. Thanks in advance, Chris!
c
Chris L.
09/17/2022, 11:11 AM
Thanks Anna! I'll try to create a MVRE for this, but it'll take some time as the behavior seems to differ across execution environments...
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.