I have a Python file on a Unix server, that will run 18 hours a day. The file will be run with Cron each day. The file has A while True
loop with sleep
. Assuming there is no uncaught exception, can this file run for this long? or how long can it run?
I have a background in PHP, and know there is a maximum execution time
, is there a such thing in Python?
Yeah, no problem. Python files are interpreted without such configuration in mind, so the process will run as long as you need it to.