Skip to content

Commit

Permalink
update task cache docs (flyteorg#459)
Browse files Browse the repository at this point in the history
Signed-off-by: Niels Bantilan <[email protected]>
  • Loading branch information
cosmicBboy committed Oct 19, 2021
1 parent db714d4 commit bc05d5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cookbook/core/flyte_basics/task_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ def square(n: int) -> int:
# %%
# If in a subsequent code update, we update the signature of the task to return the original number along with the result, it'll automatically invalidate the cache (even though the cache version remains the same).
#
# :py:func:`flytekit.task`
# @task(cache=True, cache_version="1.0")
# def square(n: int) -> (int, int):
# ...
# .. code-block:: python
#
# @task(cache=True, cache_version="1.0")
# def square(n: int) -> (int, int):
# ...

# %%
# .. note::
Expand Down

0 comments on commit bc05d5a

Please sign in to comment.