Skip to content

Commit

Permalink
[docs]add cache information in docs/user_guild/customizing_dependenci…
Browse files Browse the repository at this point in the history
…es/raw_container.md

Signed-off-by: Alex Wu <[email protected]>
  • Loading branch information
popojk committed Oct 21, 2024
1 parent bdaf79f commit 26ab898
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/user_guide/customizing_dependencies/raw_containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To clone and run the example code on this page, see the [Flytesnacks repo][flyte

```{rli} https://raw.githubusercontent.com/flyteorg/flytesnacks/69dbe4840031a85d79d9ded25f80397c6834752d/examples/customizing_dependencies/customizing_dependencies/raw_container.py
:caption: customizing_dependencies/raw_container.py
:lines: 1-5
:lines: 1-6
```

## Container tasks
Expand All @@ -31,9 +31,11 @@ is `calculate_ellipse_area_shell`. This name has to be unique in the entire proj
`inputs` and `outputs` specify the interface for the task; thus it should be an ordered dictionary of typed input and
output variables.

[Cache](https://docs.flyte.org/en/latest/user_guide/development_lifecycle/caching.html) can be enabled in a `ContainerTask` as in a standard Flyte task, by configuring the cache settings in the `TaskMetadata` in the `metadata` parameter.

```{rli} https://raw.githubusercontent.com/flyteorg/flytesnacks/69dbe4840031a85d79d9ded25f80397c6834752d/examples/customizing_dependencies/customizing_dependencies/raw_container.py
:caption: customizing_dependencies/raw_container.py
:lines: 15-112
:lines: 16-118
```

As can be seen in this example, `ContainerTask`s can be interacted with like normal Python functions, whose inputs
Expand Down

0 comments on commit 26ab898

Please sign in to comment.