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
Taylor Curran
08/10/2022, 1:09 PM
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
Lucien Fregosi
08/10/2022, 1:54 PM
hmm not sure to understand how to use it and how it is integrated with the
prefect deployment build
Lucien Fregosi
08/10/2022, 1:54 PM
Maybe I will wait for the new feature
👍 1
t
Taylor Curran
08/10/2022, 1:57 PM
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
Taylor Curran
08/10/2022, 1:58 PM
Though absolutely makes sense to wait on the new functionality, especially since those deployments updates should be out very soon.
l
Lucien Fregosi
08/10/2022, 1:59 PM
@Taylor Curran many thanks for you help and your prompt response 🤝
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.