https://flyte.org logo
#ask-the-community
Title
# ask-the-community
c

Clemente Cuevas

11/30/2023, 11:23 PM
Hi, I'm exploring Flyte and I'm curious about whether or not it's possible to define Workflows in Flyte in Go code (considering Flyte is written in Go itself). I know you can define Go code that runs in Docker containers using the ContainerTask, and there are SDKs for Python and Scala, but is there a way to define userland workflow code in Go?
s

Samhita Alla

12/01/2023, 9:48 AM
hmm, i don't think that's possible @Clemente Cuevas using container tasks seems to be the only way to achieve that. cc @Yee
y

Yee

12/01/2023, 10:37 AM
there is not… what’s the use-case out of curiosity?
like, why go vs python?
c

Clemente Cuevas

12/01/2023, 7:27 PM
The usecase here is that we have a pipeline with steps that were implemented in GoLang that would be nice to define in GoLang as well if we were to migrate to Flyte. I guess considering that there's a scala SDK I was wondering if there wasn't some way that one could use the Golang Flyte implementation to jerry-rig workflows in Go. I'm guessing there hasn't really been much inquiry around a Go SDK (I looked around in the issues and in this slack and didn't see a lot of questions around it).
y

Yee

12/03/2023, 3:27 AM
i think it would be faster to figure out a way to make all golang code individual tasks, and then call them as generic container tasks in go.
c

Clemente Cuevas

12/03/2023, 3:28 AM
I figured
y

Yee

12/03/2023, 3:28 AM
can start with just using flyte copilot as the i/o mechanism (which basically just uses json i believe), and later move to native typing if that really becomes a thing. the proto code for flyteidl is already generated ofc
k

Ketan (kumare3)

12/03/2023, 3:52 PM
@Clemente Cuevas at the moment we don’t have a golang sdk, I do believe it is not that much work, but the demand for it is zero, so I he core team finds it hard to focus on. Feel free to contribute though - we are trying to write some Of the core is rust which will make it even easier potentially
The hr biggest challenge is the UX, for defining tasks. If you see Flyte copilot has already implemented some remaining parts of it