Paige Fuller
04/04/2024, 9:56 AMNate
04/04/2024, 1:41 PMflow.from_source(...).deploy(...)
, have you switched to prefect deploy
+ prefect.yaml
?Paige Fuller
04/04/2024, 1:45 PMNate
04/04/2024, 1:53 PMprefect deployment applyooh yeah I would use
prefect deploy
+ prefect.yaml
instead of prefect deployment apply
+ deployment.yaml
- agents / block-based deployments have been deprecated for a bit and we recommend workers
here's the agents to workers guide
tldr,
• a work pool has all the config an infra block does, it serves as the base template that many deployments can override
• prefect agent start
-> prefect worker start
• prefect.yaml
is more or less the same structure as deployment.yaml
(pst just run prefect init
in a new repo and follow the CLI!)
• you dont need storage blocks for deployments with workers, you just need a pull
step to tell the worker where to get the code at runtime, like a git_clone
step (again, select docker-git
after running prefect init
🙂 )
as for the issue you meantioned, that seems like what you get when you try to read an empty JSON file. are you sure your CI is looking at the right thing?Paige Fuller
04/04/2024, 1:57 PMNate
04/04/2024, 1:58 PM