Run shell command indefinitely while tabbed out

Basically, I am asking if there is a method to keep the shell command line going when the computer is off, indefinitely.

For context if necessary, I do have Hacker and even while running a Flask server with Python and having “Always On” on, all my shells get reset. I have Kafka producers, consumers, and spark jobs running on them (I haven’t been able to find a non-linux terminal way of running them and using Python subprocess doesnt seem to let me interact with/find the Kafka broker).

To extend this time and enable waking up, I recommend just setting the run command to all the commands you run. On replit, even with always on, your repls will go to sleep. If you want a “true” always on, you would probably need another hosting service.