Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Clémentine
commited on
Commit
•
5fd25b4
1
Parent(s):
45da104
updated space restarts/jobs launches
Browse files
app.py
CHANGED
@@ -458,8 +458,8 @@ with demo:
|
|
458 |
)
|
459 |
|
460 |
scheduler = BackgroundScheduler()
|
461 |
-
scheduler.add_job(restart_space, "interval", seconds=10800)
|
462 |
-
scheduler.add_job(update_dynamic_files, "cron", minute=
|
463 |
scheduler.start()
|
464 |
|
465 |
demo.queue(default_concurrency_limit=40).launch()
|
|
|
458 |
)
|
459 |
|
460 |
scheduler = BackgroundScheduler()
|
461 |
+
scheduler.add_job(restart_space, "interval", seconds=10800) # restarted every 3h
|
462 |
+
scheduler.add_job(update_dynamic_files, "cron", minute=00) # launched every hour on the hour
|
463 |
scheduler.start()
|
464 |
|
465 |
demo.queue(default_concurrency_limit=40).launch()
|