Skip to content
Open navbar menu
Sign UpLog In
Profile icon

Chethan Sai

@chethansai
chethansai
chethansai
shared a Post
3 years ago
How to stop repl restart for every one hour for my infinite loop python code?
I have an infinite loop python code. But the repl restarts and my manually loggedin accounts get loggedout. I want the repl to stay alive for days. I
RYANTADIPARTHI
RYANTADIPARTHI
Either keep your server open, or host It on heroku.3 years ago
chethansai
chethansai
shared a Post
3 years ago
I have an infinite loop python code. But thre repl restarts and all my variables get reset. I have a hacker subscription but it says permanently alve
AzureDev
AzureDev
I'm encountering the same problem, but even the TEXT FILES sometimes gets out of sync or wipes.2 years ago
Coder100
Coder100
You could use a database, repl.it has an official one, Docs https://pypi.org/project/replit/3 years ago
DynamicSquid
DynamicSquid
If you want your variables to be saved after you close the repl, you have to store them in a text file3 years ago
chethansai
chethansai
shared a Post
3 years ago
How to keep my infinite loop python code alive forever on repl. it restarts every one hour(I have hacker subscription)
Coder100
Coder100
Actually it's the same, just that there usually is no real purpose for it3 years ago
RYANTADIPARTHI
RYANTADIPARTHI
You could do it this way. #!/usr/bin/python import time some python code that I want to keep on running Is this the right way to run the python program forever? And do I even need this time.sleep call? while True: time.sleep(5) or here are a few links: https://stackoverflow.com/questions/20170251/how-to-run-the-python-program-forever https://www.codegrepper.com/code-examples/python/infinite+loop+python3 years ago