Bot doesn't always work

Please tell me how to make the Python bot work constantly? My console periodically reboots and I need to start it again. It doesn't write any exceptions.


Our consoles are ephemeral by design, if you need a long running job, consider using always-on task feature.