[~] Scheduler's interval is now 10 minutes.

This commit is contained in:
Charles Le Maux 2024-09-06 12:51:13 +02:00
parent a9512014e8
commit f52696d38a

2
app.py
View File

@ -127,6 +127,6 @@ app.register_blueprint(apiBP)
if __name__ == '__main__': if __name__ == '__main__':
atexit.register(exit_safety) atexit.register(exit_safety)
scheduler = BackgroundScheduler() scheduler = BackgroundScheduler()
scheduler.add_job(generic_executor.scheduled_actions, 'interval', minutes=1) scheduler.add_job(generic_executor.scheduled_actions, 'interval', minutes=10)
scheduler.start() scheduler.start()
app.run(host='0.0.0.0', port=3000, debug=False) app.run(host='0.0.0.0', port=3000, debug=False)