I have a python script that runs forever (reading email) using a while loop. 30-60 minutes after I log off my computer I come back at the process has stopped even though the Replit in Always On.
The Python process run forever until canceled.
Process stops 30-60 minutes.
Steps to reproduce:
Close laptop, come back in 30-60 minutes.
If I understand correctly, Always On Repls are not always on. What I have been told is that Always On means that as soon as the Repl goes to sleep (which happens frequently), Replit wakes it back up. This means that any processes your Repl was running have to start over, thus preventing a Repl from running indefinitely. I speak though only from what I have seen and read because I have the free plan.
replit will have your repl on a whitelist of repls
all repls are shutdown after x amount of inactivity
if your repl is on the whitelist after like 5 minutes of downtime or whatever repl will reping it
it’s basically like one of those programming tricks to write less code except that the implications are that repls go down for a while even things like servers, databases, etc that need to be always on since they store data ;-;