What's the best way to ensure that that agent is r...
# prefect-cloud
c
What's the best way to ensure that that agent is running? I'm trying to get everything running on a schedule on a GCP Compute Engine and the agent seems to stop running before the next flow run (currently set for every 24hrs)
n
hi @Chris McClellan - how are you running your agent?
c
yes, but it just won't stay running
n
sorry, I mean to ask how are you running your agent?
c
just CLI
n
on a VM? or your local
c
I've been reading that I might need supervisord or something similar to keep checking that it's running
n
yep
c
no, on a GCP Compute
systemd would be the way to go if you're on a VM (GCE / Google Compute Engine machine)
c
OK, thanks, I'll give that a shot 🙂
n
👍
c
Did I need a worker or an agent? I modified the code for an agent and it's working perfectly now 🙂
Thank you for the help, very much appreciated 🙂
n
i would use a worker, simply because its the newest / the best and its what well be focusing on going forward in particular, agents do not work with the whole
prefect.yaml
prefect deploy
experience that's made it easier to deploy over the last couple months, thanks to workers (their
pull
step being the most important generally)