aviv
04/03/2024, 8:18 AMcache_key_fn
that receive as input a boolean for clearing the old cache in case we want that, something like this:
def custom_cache_key_fn(task, should_clear_cache):
if should_clear_cache:
task.clear_cache()
return "hashed-task-cache"