rapid-artist-48509
02/28/2025, 1:51 AMpyflyte build
which I think is perhaps the more recent / canonical code path to use? https://github.com/flyteorg/flytekit/blob/1b35b091210f541d69c95ae2d1bc1e8f89814c8e/flytekit/clis/sdk_in_container/build.py#L29.
◦ related question: can a user somehow do a flytekit build
and run
programmatically?
• The hello world ( https://docs.flyte.org/en/latest/user_guide/basics/hello_world.html ) talks about running locally and I see there's a small part about pyflyte run --remote
in the "running a workflow locally" section ( https://docs.flyte.org/en/latest/user_guide/getting_started_with_workflow_development/running_a_workflow_locally.html#id2 ) ... but does pyflyte run --remote
do the docker build and push stuff implicitly in this part of the doc? Assuming the workflow has an ImageSpec
Lastly and separately, if i were to start up flytekit sandbox, would that let me run workflow concurrently just on the one machine where I have the sandbox? E.g. i could kick off 10 workflows and maybe they all run concurrently?gentle-tomato-480
02/28/2025, 9:10 AMpyflyte run
without the --remote
flag.average-finland-92144
02/28/2025, 4:26 PMMapTask
to concurrently map over a set of inputs without bootstraping a container(Pod) per task. (docs)
• Launch Plans: this is a construct that lets you parametrize workflow executions. Every workflow comes with a default launchplan and you could adjust schedules on each plan so they run concurrently (docs)
• Union comes with `Actors`which creates a long-running execution environment for concurrent executions without the penaly of container boot time. Combined with MapTasks it's much much faster (docs)
Does that answer your question or was too much?😬rapid-artist-48509
02/28/2025, 6:50 PMpackage
perhaps? https://github.com/flyteorg/flytekit/blob/1b35b091210f541d69c95ae2d1bc1e8f89814c8e/flytekit/clis/sdk_in_container/package.py#L127
lastly, is flytekit.clis.sdk_in_container
a module that third-party code should be using, or is it supposed to be more hidden / just for the pyflyte CLI ?average-finland-92144
02/28/2025, 6:55 PMImageSpec
and provide arguments and then the docker image will be built for you, including the declared dependencies
https://github.com/flyteorg/flytekit/blob/1b35b091210f541d69c95ae2d1bc1e8f89814c8e/flytekit/image_spec/image_spec.py#L29
Docs
Does that help?rapid-artist-48509
02/28/2025, 6:57 PMImageSpec
. thank you!
returning to flytekit.clis.sdk_in_container
real quick, is that mainly just for flyte CLI, or if say I had my own cli / python library that I want to effectively wrap pyflyte
invocations, could i use that module?