Pierre Monico
01/17/2022, 10:09 AMAnna Geller
timeout (Union[int, timedelta], optional): The amount of time (in seconds) to wait while
running this task before a timeout occurs; note that sub-second
resolution is not supported, even when passing in a timedelta.
To set the same globally, this syntax should work:
export PREFECT__TASKS__DEFAULTS__TIMEOUT=3600 # in seconds
Regarding late runs, perhaps you could try to implement a state handler similar to this.Pierre Monico
01/17/2022, 10:42 AMrequests
wouldn’t time out and make the task fail
2. Thanks for the hint, I’ll check that
3. It’s on a simple VM (in the process of migrating) and I am not doing any long-running jobs
4. Not reallyAnna Geller
Pierre Monico
01/17/2022, 11:02 AMtasks.defaults
from config.toml
work.timeout
as global option? I could send a PR at some pointAnna Geller