Andrew Sullivan-Knoff
02/06/2024, 12:19 AMmy_flow.serve(...)
and then I also need to make sure the prefect agent is running prefect agent start -q default
and that the server is running prefect server start
. Is there a simple way to accomplish this in a deployment script? Should I set these up as separate actions? Or should I look at how to accomplish them with something like multiprocessing
?Kevin Grismore
02/06/2024, 12:31 AMKevin Grismore
02/06/2024, 12:43 AMAndrew Sullivan-Knoff
02/06/2024, 5:11 PMmy_flow.serve(...)
command is holding the GitHub Action open. What's the best way to send a deployment to long-lived infrastructure without keeping the deployment action open?Kevin Grismore
02/06/2024, 5:12 PMserve
is similar to starting a worker/agent but specific to the flows you're serving. for deploying to somewhere there's a worker running, then you'll want to use deploy
Kevin Grismore
02/06/2024, 5:13 PMserve
would be the thing you want to run directly on your EC2, not in GHA. if you're deploying flows, then deploy
which has many of the same arguments as serve
will just create the deploymentAndrew Sullivan-Knoff
02/07/2024, 4:48 PMdeploy
requires a worker to be started, which is a long running process. Looking at starting the worker on EC2 startup - is there a better way to do this?Kevin Grismore
02/07/2024, 4:51 PMprefect worker start --pool <your-work-pool-name>
as the startup command on whichever computer service they're using