Victor
04/04/2024, 4:24 PMprefect deployment build test.py:test-flow -n test-deployment
prefect deployment apply test-deployment.yaml
prefect worker start -t process -p local-pool
Nate
04/04/2024, 4:28 PMprefect.yaml
is the way to declaratively define deployments, which you then deploy with prefect deploy
(as opposed to deployment.yaml
+ prefect deployment build / apply
)
https://docs.prefect.io/latest/guides/upgrade-guide-agents-to-workers/?h=ageNate
04/04/2024, 4:28 PMNate
04/04/2024, 4:29 PMprefect init
in a fresh repo will be helpfulVictor
04/04/2024, 6:25 PMprefect init --recipe local
prefect deploy --prefect-file prefect.yaml --name test-deployment
prefect worker start -p <work pool name>
Nate
04/04/2024, 6:26 PMprefect worker start --type process --pool my-pool
but that would be created with all defaults, so only if that's what you want, UI is nice for tweaking config on the work pool later
but yeah prefect init
is just a nice way to bootstrap a repo so you don't find yourself worrying about yaml formatting so muchVictor
04/04/2024, 6:57 PMNate
04/04/2024, 7:00 PMNate
04/04/2024, 7:01 PMVictor
04/04/2024, 7:17 PMVictor
04/04/2024, 7:25 PMNate
04/04/2024, 7:25 PMNate
04/04/2024, 7:26 PM.serve()
, in which case you just need to keep that process aliveNate
04/04/2024, 7:27 PMVictor
04/05/2024, 12:57 AMEdward Kariuki
04/05/2024, 3:21 PMNate
04/05/2024, 3:23 PMNate
04/05/2024, 3:26 PM