Stefan Rasmussen
10/03/2022, 2:43 PM@task
decorator after that task has been defined? Say I use a task from a collection that and want to use a custom cache_key_fn
.
It looks like i could do it by
from copy import copy
from some_collection import some_task
some_task_cache = copy(some_task)
some_task_cache.cache_key_fn = my_cache_fn
but that seems a bit hacky.
The actual problem is the other way around - I want to provide a collection for users, but they would want to modify the task decorator arguments.Mason Menges
10/03/2022, 6:22 PMStefan Rasmussen
10/04/2022, 7:55 AM