Clémentine commited on
Commit
5fd25b4
1 Parent(s): 45da104

updated space restarts/jobs launches

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -458,8 +458,8 @@ with demo:
458
  )
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()
 
458
  )
459
 
460
  scheduler = BackgroundScheduler()
461
+ scheduler.add_job(restart_space, "interval", seconds=10800) # restarted every 3h
462
+ scheduler.add_job(update_dynamic_files, "cron", minute=00) # launched every hour on the hour
463
  scheduler.start()
464
 
465
  demo.queue(default_concurrency_limit=40).launch()