Hi everyone - how is `timeout` supposed to work on...
# prefect-community
m
Hi everyone - how is
timeout
supposed to work on a mapped task ? it seems to me that timeout is not being enforced - is there a way to see the timeout specification in the UI ?
c
Hey Marwan - at a high level, your timeout will apply on each individual task of your mapped task. However, because it is not entirely possible to stop an arbitrary python function, Prefect operates on a best effort basis — either way though, if your specified
timeout
is exceeded your task should enter a
TimedOut
failed state. If you’re seeing otherwise I’d be curious for a reproducible example!
m
Hi @Chris White - thank you for the quick response - I am not seeing my tasks enter a
TimedOut
failed state for some reason - will try to share an example soon
👍 1
here is the link to the issue which hopefully describes what I am trying to do (and where I would have expected the timeout to be invoked) along with a reproducible example https://github.com/PrefectHQ/prefect/issues/2645
👍 1