Hello Community! While trying out the “Getting st...
# flyte-support
f
Hello Community! While trying out the “Getting started with workflow development” part of the tutorial, I have encountered an issue that when running
pyflyte 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)
Copy code
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
a
@full-caravan-5077 so is the namespace created at some point and then executions work correctly? I mean, is it a temporary failure or?
f
@average-finland-92144 I believe the namespace is created at the time of creating the new project. As this only happen if the
pyflyte 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
.