https://prefect.io logo
m

Moe

07/21/2023, 6:58 PM
Hi, where can I modify
prefect.settings
e.g. I want to update this
PREFECT_API_TASK_CACHE_KEY_MAX_LENGTH
from its default 2000 to say 10000?
1
n

Nate

07/21/2023, 7:09 PM
hi @Moe, the simplest way is to set
PREFECT_API_TASK_CACHE_KEY_MAX_LENGTH
as an env var
Copy code
export PREFECT_API_TASK_CACHE_KEY_MAX_LENGTH=10000
otherwise you can use `temporary_settings` if you want to
m

Moe

07/21/2023, 7:13 PM
Thanks. Temporary settings would work for now. How can I set that in my python script? Is there an example?