https://prefect.io logo
Title
r

redsquare

10/14/2022, 7:54 PM
Hey, how are people dealing with Prefect 2.0 CI/CD and agents with deployments/schedules/params, are there any good github action examples floating around?
1
s

Serina

10/14/2022, 8:00 PM
Hi there 🙂 I’d encourage you to check out some of our ci/cd examples in the prefect-recipes repo. If you don’t find what you’re looking for, feel free to create a request to see that specific example.
👍 1
:thank-you: 1
a

Anna Geller

10/14/2022, 8:26 PM
you may also check out this repo - the readme includes a blog post and a video demo showing the setup of everything via GitHub Actions
r

redsquare

10/14/2022, 8:30 PM
Thanks @Anna Geller, I was trying to get a good prefct project folder structure together with multiple flows and multiple schedules per flow together with an agent deployment per flow which requires cascading matrices or calling gh action workflows from within workflows
👍 1
So perhaps a scheduling file within each flow folder and a deploy per schedule with one agent per flow.
a

Anna Geller

10/14/2022, 10:01 PM
did you check this repo? it's all there in the .github
r

redsquare

10/15/2022, 7:10 AM
I did thanks and watched the vid, assume your running the scheduling bash afterwards to set schedules rather than part of the githib action. I am just slightly confused how best to approach the number of agents I should be using, associating them to flows and setting the schedules per flow all as part of the build...I am trying to envisage the cd of a repo with 50+ flows and the maintenance of it all
👍 1
a

Anna Geller

10/15/2022, 2:21 PM
the number of agents I should be using
you need just one -- all flow run infra gets deployed as serverless containers running separate from that agent, agent only creates the ECS tasks