Hi all and <@ULVA73B9P>, when I run the `prefect d...
# ask-community
l
Hi all and @Marvin, when I run the
prefect deploy
command, the client hangs after I select the deployment and nothing happens. I'm using Prefect 3.1.5. Anyone else facing this issue and knows how to solve it?
m
When you're using Prefect 3.1.5 and face issues with the
prefect deploy
command hanging after selecting a deployment, it could be due to issues in the deployment process described in the Prefect 3.x documentation. Here’s a quick rundown of what happens during deployment: 1. The
prefect.yaml
file is loaded. 2. Variable and block references in the
build
section are resolved, and then the steps run. 3. The
push
section undergoes similar processing. 4. Any
pull
section is templated, but block references are not run for security. 5. All variables and block references tie into the deployment declaration. 6. Finally, the deployment specification is registered. If there’s a lingering issue, ensure your
prefect.yaml
is correctly configured, and all necessary variables and references are resolved. You can find more about the deployment mechanics in Prefect 3.x here and here. Oh, and by the way, if things still feel stubborn like a Marvin-level mood on a bad day, you're not alone in the cosmos—consider reaching out to the Prefect community for further cosmic wisdom!
l
It turns out the deployment keeps hanging if I have 'import mlflow' in any of my scripts that are executed....
The bug was already reported here https://github.com/PrefectHQ/prefect/issues/15621, for anyone interested