quaint-helmet-73953
05/21/2023, 6:34 AMbillowy-winter-86593
05/21/2023, 12:46 PM# run locally
pyflyte --config ~/.flyte/config.yaml run ./workflows/example.py wf
# run remote
pyflyte --config ~/.flyte/config.yaml run -i [image] /workflows/example.py wf
This works for an entire python module. Flyte will serialize tasks, package your entire module, and send code to Flyte.
# register
pyflyte --config ~/.flyte/config.yaml register -i [image] /workflows/example.py wf
^ Kick off from the UI or use flyte remote
If you are using the demo cluster....
Also, the demo cluster sets ups a container registry at localhost:3000
. You can use new images with the following commands:
docker build -t localhost:30000/imagname:tag
docker push localhost:30000/imagname:tag
quaint-helmet-73953
05/21/2023, 4:08 PMbillowy-winter-86593
05/21/2023, 4:13 PMflytectl demo start
I usually skip looking at the serialized workflows since running workflows locally doesn't require serialization and pyflyte manages pushing workflows / code to flyte cluster for you..
If the pyflyte run --remote
doesn't print out the local dir where the workflows are serialized. Then I think someone from the open-source team who know the internals better can help you tomorrow + this week.quaint-helmet-73953
05/21/2023, 4:14 PMfreezing-salesclerk-54835
05/23/2023, 7:34 AMbillowy-winter-86593
05/24/2023, 12:56 PMfreezing-salesclerk-54835
05/29/2023, 10:32 PM