Spaces:
Sleeping
Sleeping
Terry Zhuo
commited on
Commit
·
c93c18b
1
Parent(s):
2480d21
update
Browse files
app.py
CHANGED
@@ -644,5 +644,5 @@ def update_leaderboard(payload: WebhookPayload) -> None:
|
|
644 |
webhooks_server.launch()
|
645 |
|
646 |
scheduler = BackgroundScheduler()
|
647 |
-
scheduler.add_job(restart_space, "interval", hours=
|
648 |
-
scheduler.start()
|
|
|
644 |
webhooks_server.launch()
|
645 |
|
646 |
scheduler = BackgroundScheduler()
|
647 |
+
scheduler.add_job(restart_space, "interval", hours=3) # restarted every 3h as backup in case automatic updates are not working
|
648 |
+
scheduler.start()
|