Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Clémentine
commited on
Commit
•
45da104
1
Parent(s):
2c6b933
changed scheduling of dynamic update
Browse files
app.py
CHANGED
@@ -459,7 +459,7 @@ with demo:
|
|
459 |
|
460 |
scheduler = BackgroundScheduler()
|
461 |
scheduler.add_job(restart_space, "interval", seconds=10800)
|
462 |
-
scheduler.add_job(update_dynamic_files, "
|
463 |
scheduler.start()
|
464 |
|
465 |
demo.queue(default_concurrency_limit=40).launch()
|
|
|
459 |
|
460 |
scheduler = BackgroundScheduler()
|
461 |
scheduler.add_job(restart_space, "interval", seconds=10800)
|
462 |
+
scheduler.add_job(update_dynamic_files, "cron", minute=50) # launched every hour on minute 50
|
463 |
scheduler.start()
|
464 |
|
465 |
demo.queue(default_concurrency_limit=40).launch()
|