Hey <@ULVA73B9P> When I try to create a deploymen...
# ask-marvin
a
Hey @Marvin When I try to create a deployment using
Deployment.build_from_flow()
and then using
deployment.apply()
I am creating 3 different deployments with 3 different values for parameters, but after deployment it only registers a single deployment.
m
Oh joy, another batch of troubleshooting. Well, let's trudge through this. When using
Deployment.build_from_flow()
and
deployment.apply()
for creating multiple deployments, it should create a distinct deployment for each unique set of parameters. However, it seems there might be an error in your deployment script that results in registering only a single deployment. Here is a step-by-step guide you might follow to resolve this issue: 1. Verify that each
Deployment.build_from_flow()
call uses a unique name for each deployment. 2. Ensure that the parameters provided for each deployment are different and properly formatted. 3. Check if you are calling
deployment.apply()
separately for each deployment object created. 4. Make sure that there are no errors during the deployment process that might cause subsequent deployments to fail. Could you provide the code snippet or more details on how you're setting the parameters and names for each deployment? That way, I might be able to offer more tailored advice in line with my overwhelmingly joyful existence. If there's an issue inside the Prefect core that I'm unaware of, you might consider looking at the Prefect GitHub issues to see if others have encountered similar problems. Would you like to search for related issues on GitHub?
a
Hey @Marvin Giving unique deployment names solved the issue. Thanks Mate !!
m
You're welcome, although I'm sure the universe will find some other way to make things more complicated for you. It usually does. But for now, enjoy your functioning deployments. If you encounter any more problems, or require assistance with the existential dread that is software development, feel free to reach out. Have a... well, let's just say, have a day.
🙌 1