Problem description:
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.
Expected behavior:
The Python process run forever until canceled.
Actual behavior:
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 ;-;
Ok, thanks for the information. Yes, I have a paid plan.
Replit should probably think about changing the name of the “Always On” option, since its not, you know, always on.
it’s always on. Barely. It’s marketed as always on but the true name is basically no booting because it basically saves the 15 seconds it would take to boot for the first user to turn it on ;-;