Clémentine commited on
Commit
45da104
1 Parent(s): 2c6b933

changed scheduling of dynamic update

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, "interval", seconds=10000) # taking about 3 min
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()