Ask coding questions

← Back to all posts
How do I restart the project on repl Every period of time
Tonialg (6)

How do I restart the project on repl Every period of time
pls i need the

Comments
hotnewtop
VulcanWM (2437)

Also what will turning it on and off do? Because if you want it to do a certain function every hour or something you can use this code in Python:

from apscheduler.schedulers.blocking import BlockingScheduler
def some_job():
#do whatever you want it to do every hour

scheduler = BlockingScheduler()
scheduler.add_job(some_job, 'interval', hours=1)
scheduler.start()

LukeWright (278)

you could go to uptime robot and create a html monitor

VulcanWM (2437)

What do you mean?

Tonialg (6)

@VulcanWM Example Every hour the project turns off and on