Skip to content
Discussion options

You must be logged in to vote

Task caching and result persistence are intimately related. Because task caching relies on loading a known result, task caching will only work when your task can persist its output to a fixed and known location.

Therefore any configuration which explicitly avoids result persistence will result in your task never using a cache, for example setting persist_result=False.

https://docs.prefect.io/v3/concepts/caching#cache-keys

What each setting does

PREFECT_TASKS_DEFAULT_PERSIST_RESULT=False

  • Controls result persistence: whether task return values are written to storage (e.g. ~/.prefect/storage/).
  • False = “by default, do not persist task results.”
  • Caching depends on persisted results, so tur…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gsakkis
Comment options

@bdalpe
Comment options

Answer selected by gsakkis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants