Hi all. I was wondering, is this a correct way to set task defaults for an entire flow?
Copy code
from prefect.configuration import config
config.tasks.defaults.max_retries = 2
config.tasks.defaults.retry_delay = datetime.timedelta(seconds=10)
k
Kevin Kho
05/12/2021, 1:56 PM
Hi @Kamil Okáč! This looks right but I think the retry_delay can just be a number instead of the timedelta.
k
Kamil Okáč
05/12/2021, 2:44 PM
Thanks for confirmation. I tried using number of seconds directly, but it doesn't work (it works for loaded configurations (from env or toml files) only).
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.