https://prefect.io logo
c

Chris McClellan

07/23/2023, 9:12 AM
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

Nate

07/24/2023, 10:26 PM
hi @Chris McClellan - how are you running your agent?
c

Chris McClellan

07/24/2023, 10:26 PM
yes, but it just won't stay running
n

Nate

07/24/2023, 10:27 PM
sorry, I mean to ask how are you running your agent?
c

Chris McClellan

07/24/2023, 10:27 PM
just CLI
n

Nate

07/24/2023, 10:27 PM
on a VM? or your local
c

Chris McClellan

07/24/2023, 10:27 PM
I've been reading that I might need supervisord or something similar to keep checking that it's running
n

Nate

07/24/2023, 10:27 PM
yep
c

Chris McClellan

07/24/2023, 10:27 PM
no, on a GCP Compute
systemd would be the way to go if you're on a VM (GCE / Google Compute Engine machine)
c

Chris McClellan

07/24/2023, 10:29 PM
OK, thanks, I'll give that a shot 🙂
n

Nate

07/24/2023, 10:29 PM
👍
c

Chris McClellan

07/25/2023, 3:38 AM
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

Nate

07/25/2023, 4:07 PM
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)