pufanyi commited on
Commit
f46cbb5
1 Parent(s): 086b308

Refactor scheduler interval to run every 1 hour instead of every 30 minutes

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -204,6 +204,6 @@ with demo:
204
  gr.Markdown("```bib\n" + CITATION_BUTTON_TEXT + "\n```")
205
 
206
  scheduler = BackgroundScheduler()
207
- scheduler.add_job(restart_space, "interval", seconds=1800)
208
  scheduler.start()
209
  demo.queue(default_concurrency_limit=40).launch()
 
204
  gr.Markdown("```bib\n" + CITATION_BUTTON_TEXT + "\n```")
205
 
206
  scheduler = BackgroundScheduler()
207
+ scheduler.add_job(restart_space, "interval", seconds=3600)
208
  scheduler.start()
209
  demo.queue(default_concurrency_limit=40).launch()