Skip to content

Commit

Permalink
add ContainerTask cache example code (#1758)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Wu <[email protected]>
  • Loading branch information
popojk authored Oct 23, 2024
1 parent 135ae99 commit 0b350cd
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging

from flytekit import ContainerTask, kwtypes, task, workflow
from flytekit.core.base_task import TaskMetadata

logger = logging.getLogger(__file__)

Expand All @@ -25,6 +26,7 @@
"{{.inputs.b}}",
"/var/outputs",
],
metadata=TaskMetadata(cache=True, cache_version="1.0"),
)

calculate_ellipse_area_python = ContainerTask(
Expand All @@ -41,6 +43,7 @@
"{{.inputs.b}}",
"/var/outputs",
],
metadata=TaskMetadata(cache=True, cache_version="1.0"),
)

calculate_ellipse_area_r = ContainerTask(
Expand All @@ -58,6 +61,7 @@
"{{.inputs.b}}",
"/var/outputs",
],
metadata=TaskMetadata(cache=True, cache_version="1.0"),
)

calculate_ellipse_area_haskell = ContainerTask(
Expand All @@ -73,6 +77,7 @@
"{{.inputs.b}}",
"/var/outputs",
],
metadata=TaskMetadata(cache=True, cache_version="1.0"),
)

calculate_ellipse_area_julia = ContainerTask(
Expand All @@ -89,6 +94,7 @@
"{{.inputs.b}}",
"/var/outputs",
],
metadata=TaskMetadata(cache=True, cache_version="1.0"),
)


Expand Down

0 comments on commit 0b350cd

Please sign in to comment.