This PR adds a warning when cache_key_fn and cache_policy are both provided to a task informing the user that cache_key_fn takes precedence.
It also adds a test recording that the cache is busted when the result_storage_key on a task changes. This will be true until we implement a transaction record store separate from result storage.
This PR adds a warning when
cache_key_fn
andcache_policy
are both provided to a task informing the user thatcache_key_fn
takes precedence.It also adds a test recording that the cache is busted when the
result_storage_key
on a task changes. This will be true until we implement a transaction record store separate from result storage.Related to https://github.com/PrefectHQ/prefect/issues/13800
Example
Checklist
<link to issue>
"maintenance
,fix
,feature
,enhancement
,docs
.For documentation changes:
mint.json
for files that are removed or renamed.For new functions or classes in the Python SDK:
docs/mint.json
navigation.