Python Script Halting in Railway
I have a Python script that is supposed to run forever, but I have seen it halt without any bugs or any other log output. My restart policy is "Always"
This is the relevant part of the script
3 Replies
Project ID:
42cb5f33-ac30-472f-be18-06847d544555
42cb5f33-ac30-472f-be18-06847d544555
Its usually standard to not have your if name == main not handle any logic but wrap your entry functions in a
def main()
can you share the infinite_loop function you have?
It seems like your actually wanting to restart the python file all together but if you want it ran forever, it's better to initiate an event loop and have that run indefinitely