@Marvin how do I find out what my current configured timeout is?
m
Marvin
07/12/2024, 3:04 PM
You can determine your current configured timeout by examining your flow's definition. The timeout is set using the
timeout_seconds
keyword argument in the
@flow
decorator. Here is an example from the Prefect documentation:
from prefect import flow
import time
@flow(timeout_seconds=1, log_prints=True)
def show_timeouts():
print("I will execute")
time.sleep(5)
print("I will not execute")
Timeout configurations are visible in the flow's implementation or defined within the code that registers/deploys the flow.
For more details, visit the Prefect documentation here.
d
Daniel
07/12/2024, 3:05 PM
@Marvin if no timeout is explicitly configured what is the default timeout?
m
Marvin
07/12/2024, 3:05 PM
The documentation does not explicitly state a default timeout for flow runs if a timeout is not configured. You might need to set it explicitly using the
timeout_seconds
keyword in your flow definition.
For more details, you can check the Prefect documentation here.
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.