PrefectHQ / prefect

Prefect is a workflow orchestration tool empowering developers to build, observe, and react to data pipelines
https://prefect.io
Apache License 2.0
15.29k stars 1.5k forks source link

Adds warning when `cache_key_fn` and `cache_policy` are both provided to a task #14080

Closed desertaxle closed 1 week ago

desertaxle commented 1 week ago

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.

Related to https://github.com/PrefectHQ/prefect/issues/13800

Example

Checklist

For documentation changes:

For new functions or classes in the Python SDK: