Is there any way to cache the ContainerTask ?
# flyte-support
i
Is there any way to cache the ContainerTask ?
f
Cache=True
i
I also tried putting
Cache=True
in the ContainerTask. The wf ran, but task was not cached.
f
also cache_version="1.0", you have to sadly use both
Sorry i was wrong
when you are constructing raw tasks - they are always of type Task - check the heirarchy - https://docs.flyte.org/projects/flytekit/en/latest/_modules/flytekit/core/base_task.html#PythonTask
and then you need to create TaskMetadata and pass that - I was wrong sorry
ContainerTask(metadata=TaskMetadata(cache=True, cache_version="1.0")
i
Ok. I will try that
Thanks
It worked 🚀. Thanks