You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromprefectimporttaskimporttime@task(timeout_seconds=1, log_prints=True)defshow_timeouts():
print("I will execute")
time.sleep(5)
print("I will not execute")
Inspect the logs to see that 5 seconds actually pass before the TimeoutError occurs. Increase the seconds to a higher number to make it more noticeable.
Version info (prefect version output)
Version: 2.20.10
API version: 0.8.4
Python version: 3.12.7
Git commit: 4fb64ec3
Built: Wed, Oct 16, 2024 1:24 PM
OS/Arch: darwin/arm64
Profile: local
Server type: server
Additional context
No response
The text was updated successfully, but these errors were encountered:
Bug summary
Task timeouts do not appear to actually be enforced. A
TimeoutError
is eventually raised but not when it's supposed to be.The docs contain the following example:
Inspect the logs to see that 5 seconds actually pass before the
TimeoutError
occurs. Increase the seconds to a higher number to make it more noticeable.Version info (
prefect version
output)Additional context
No response
The text was updated successfully, but these errors were encountered: