A continuously running Discord Bot (never dies) in Prefect

We have a Python Discord Bot that continuously runs and should never die.
We are running Prefect 1.0 with a k8s agent.
Is it realistic to put register this discord bot as a flow, and if so, how to we configure it to never get shut down?
Or should we run this bot separate from Prefect?
Thanks

1 Like

I would actually recommend running this using Prefect 2.0 as described here:

This post discusses pros and cons of running a never-ending flow, which is a valid statement even if you use 1.0

1 Like

Thanks Anna this definitely helps

1 Like