What is the best way to run a code 24h/24h?

Hello there,

I am wondering if its possible to run a while True loop forever on Replit ?

I run a data collection script that needs to use request module every 12 hours. Any recommandation on this ? Maybe I should use a .sh file to execute code ? Or should I use time ?

I used time and While True but the code is stopping running at some point so…

I am using the hacker plan by the way.

Thanks for your help!

Use the “always-on” boost. Lean more here

1 Like

The ‘always on’ repl will turn off after a while if the program is inactive.

1 Like

Thank y’all, was kind of newbie here so… It’s clear now. And my script works perfectly.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.