Hi everyone, Is it possible to run part of a workl...
# flyte-support
b
Hi everyone, Is it possible to run part of a worklow or a list of tasks in a single pod? I would like to use the caching mechanism for tasks but reduce the cost of starting a pod for each task. I have a task that i want to call up thousands of times, but it doesn't require a lot of computing time
a
hi @breezy-receptionist-39475 have you checked Map Tasks? Your use case sounds like a fit https://docs.flyte.org/projects/cookbook/en/latest/auto/core/control_flow/map_task.html
b
But from what i read in the K8s Array plugin a pod is started for each instance in the array.
g
you want to reuse the same pod to run the other tasks, right?Flyte doesn’t support it yet.
b
yes, exactly
g
cc @freezing-airport-6809
b
thank you both very much for the replies. Do you think it is enough to just adapt the k8s array plugin or are extensive changes necessary?
f
No so we have been thinking of this
@hallowed-mouse-14616 is almost done completely reengineering array/map tasks, this will give us the capability of reusing pods
We would Love to work with you if you can contribute
Ohh you want to call a 1000 times, I also think this is a good case for flytekit plugins
Backend flytekit plugin I mean
183 Views