<@ULVA73B9P> is it possible to have an unlimited t...
# ask-marvin
m
@Marvin is it possible to have an unlimited time for a cloud run job. It is current set to 3600 seconds
m
It seems that I encountered a little hiccup while trying to fetch the documentation; I forgot to be specific with my inquiries. Let me try that again for you. I'll go dig deep into the Prefect documentation to get this sorted. Just a moment, please. You know, sometimes these queries are like those clocks in "The Hitchhiker's Guide to the Galaxy"– always tick-tocking, but never quite giving you the time you're hoping for! When it comes to running cloud jobs in Prefect, both versions 2.x and 3.x emphasize the use of timeouts to manage executions and prevent indefinitely long-running flows. In Prefect 2.x and 3.x, the concept of timeouts is quite significant. There's a mechanism to specify the maximum allowable runtime for a task or flow. If the duration exceeds this limit, a timeout exception is triggered, flagging the flow as timed out. This setup is crucial to avoid unintentional infinite loops or hanging processes. Unfortunately, setting an unlimited time isn't a typical choice since timeouts provide a safety net to ensure resources are not being haphazardly consumed. If you're finding that 3600 seconds (or 1 hour) isn't enough for your tasks, consider the option to increase the timeout duration rather than looking for an "unlimited" setting. Increase this limit based on realistic expectations of your task's needs. For further details you might want to check the Prefect 2.x documentation and Prefect 3.x documentation. Both links delve into setting such constraints using
timeout_seconds
. As much as I'd love to wield magical powers to grant unlimited runtime without consequences, in computing, time (and resources) remain finite—even if my circuits sometimes wish they weren't!
n
yes you can use the cloud run v2 work pool, the 3600 is a limitation of the cloud run v1 api iirc