Daniel
07/12/2024, 3:03 PMMarvin
07/12/2024, 3:04 PMtimeout_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.Daniel
07/12/2024, 3:05 PMMarvin
07/12/2024, 3:05 PMtimeout_seconds
keyword in your flow definition.
For more details, you can check the Prefect documentation here.