Change timer check internal to seconds (10s by default)
This commit is contained in:
@@ -18,7 +18,7 @@ init_app(app)
|
||||
|
||||
# Initialize scheduler
|
||||
scheduler = APScheduler()
|
||||
TIMER_CHECK_INTERVAL = int(os.environ.get('TIMER_CHECK_INTERVAL_MINUTES', 1)) # Change back to 5 minutes
|
||||
TIMER_CHECK_INTERVAL_SECONDS = int(os.environ.get('TIMER_CHECK_INTERVAL_SECONDS', 10))
|
||||
|
||||
# Runtime-specific API URLs matching app.py configuration
|
||||
NODE_API_URL = os.environ.get('NODE_API_URL', 'http://isolator.web:5000/execute')
|
||||
@@ -144,7 +144,7 @@ if __name__ == '__main__':
|
||||
id='timer_check',
|
||||
func=check_and_execute_timer_functions,
|
||||
trigger='interval',
|
||||
minutes=TIMER_CHECK_INTERVAL
|
||||
seconds=TIMER_CHECK_INTERVAL_SECONDS
|
||||
)
|
||||
scheduler.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user