Clémentine commited on
Commit
165e2bc
1 Parent(s): 9f4d66f

changed scheduler

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -441,8 +441,8 @@ with demo:
441
  )
442
 
443
  scheduler = BackgroundScheduler()
444
- scheduler.add_job(restart_space, "interval", seconds=10800) # restarted every 3h
445
- scheduler.add_job(update_dynamic_files, "cron", minute=30) # launched every hour on the hour
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()