Hi Prefect team Regarding Schedule, is it possible...
# ask-community
l
Hi Prefect team Regarding Schedule, is it possible to build the yaml file with a
--schedule
option (like we do for storage block for instance) ? In my automated process I can’t edit the deployment.yaml file as I re-build this file every time in case of something has changed
t
Hi Lucien, our engineers are currently working on improving the deployment build experience by providing more options for automated deployment builds and scheduling configuration in the CLI. These updates should be coming through by the end of next week. In the mean time, I’m not sure if you have checked out our prefect.client.create_deployment() method? This may help you automate the creation of deployments while specifying schedules.
l
hmm not sure to understand how to use it and how it is integrated with the
prefect deployment build
Maybe I will wait for the new feature
👍 1
t
So the client would be in pure python. It’s essentially using an API to interact with Orion so you could bypass/skip using prefect CLI commands. See Example
Though absolutely makes sense to wait on the new functionality, especially since those deployments updates should be out very soon.
l
@Taylor Curran many thanks for you help and your prompt response 🤝