Hui Zheng
12/04/2020, 8:44 PMPREFECT__TASKS__DEFAULTS__TIMEOUT
according to this doc
<https://docs.prefect.io/core/concepts/configuration.html#environment-variables>
However, when I do it properly, I got an error. TypeError: Only integer timeouts (representing seconds) are supported.
even when I assigns the integer value. (See thread for details)Hui Zheng
12/04/2020, 8:49 PMflow.storage = Docker(
# set prefect.config
"PREFECT__TASKS__DEFAULTS__MAX_RETRIES": 2,
"PREFECT__TASKS__DEFAULTS__TIMEOUT": 30,
"PREFECT__TASKS__DEFAULTS__RETRY_DELAY": 5,
"PREFECT__TASKS__DEFAULTS__CHECKPOINT": True,
}
Hui Zheng
12/04/2020, 8:50 PMTraceback (most recent call last):
File "flow.local-test.py", line 1, in <module>
from flow import flow
File "/app/flow.py", line 155, in <module>
def fetch_runnable_models(current_stamp: datetime) -> list: # noqa
File "/usr/local/lib/python3.8/site-packages/prefect/utilities/tasks.py", line 399, in <lambda>
return lambda fn: prefect.tasks.core.function.FunctionTask(
File "/usr/local/lib/python3.8/site-packages/prefect/tasks/core/function.py", line 63, in __init__
super().__init__(name=name, **kwargs)
File "/usr/local/lib/python3.8/site-packages/prefect/core/task.py", line 279, in __init__
raise TypeError(
TypeError: Only integer timeouts (representing seconds) are supported.
Zanie