Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Clémentine
commited on
Commit
•
165e2bc
1
Parent(s):
9f4d66f
changed scheduler
Browse files
app.py
CHANGED
@@ -441,8 +441,8 @@ with demo:
|
|
441 |
)
|
442 |
|
443 |
scheduler = BackgroundScheduler()
|
444 |
-
scheduler.add_job(restart_space, "interval",
|
445 |
-
scheduler.add_job(update_dynamic_files, "
|
446 |
scheduler.start()
|
447 |
|
448 |
demo.queue(default_concurrency_limit=40).launch()
|
|
|
441 |
)
|
442 |
|
443 |
scheduler = BackgroundScheduler()
|
444 |
+
scheduler.add_job(restart_space, "interval", hours=3) # restarted every 3h
|
445 |
+
scheduler.add_job(update_dynamic_files, "interval", minute=90) # launched every hour on the hour
|
446 |
scheduler.start()
|
447 |
|
448 |
demo.queue(default_concurrency_limit=40).launch()
|