full-caravan-5077
09/27/2024, 6:23 PMpyflyte run
immediately after creating a new project through flytectl create project
, the web console shows failed to create workflow in propeller namespace “projectName-domain” not found.
I believe this is a similiar issue to issue. It seems that it takes time to create kubernetes namespace after running flytectl create project
. If running pyflyte run
too soon, the namespace may not be created in time.
Is this an expected behavior of flytectl or should it be considered a bug?
Thanks for the reply in advance!
You can reproduce this issue by the script below: (change the project name accordingly to, it must be a new project)
flytectl create project \
--id "new-project" \
--labels "my-label=new-project" \
--description "My Flyte project" \
--name "My project"
pyflyte run --remote -p new-project -d development example.py wf --name Ada
average-finland-92144
09/30/2024, 10:41 PMfull-caravan-5077
10/01/2024, 12:36 AMpyflyte run
is ran immediately after flytectl create project
. Only in this rare case the error occurs. This can be solved by re-running pyflyte run
or waiting for a short time before running pyflyte run
.