rich-ambulance-4234
05/15/2024, 9:58 AM> pyflyte register --image my_user/my_image:latest --project flytesnacks_v3 --domain development --version 1 workflowsWhat am I doing wrong?
ancient-wolf-19325
05/15/2024, 9:58 AM--image
flag with the pyflyte run
command to specify your custom image. Additionally, ensure that the PYTHONPATH
is set correctly within the image.
import flytekit
from flytekit import task, workflow
@task(container_image="my_user/my_image:latest")
def my_task() -> str:
import pandas as pd
return pd.__version__
@workflow
def my_wf() -> str:
return my_task()
if __name__ == "__main__":
my_wf()
Run the workflow with:
pyflyte run --remote --image my_user/my_image:latest workflows/my_wf.py my_wf
Would you like more detail?
Sources:
- Couple of problems I ran into while I try to go through
- Hi, I'm facing one doubt related to flyte
- Hello All, I am trying to install custom packages into the flyte container 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.rich-ambulance-4234
05/15/2024, 10:23 AMPYTHONPATH
is set correctly within the image."?