fix scheduler, add logging for grt free slots

This commit is contained in:
2025-12-20 13:37:21 +03:00
parent 0e89e71e20
commit c6aef69caf
4 changed files with 16 additions and 2 deletions
+5 -2
View File
@@ -1,9 +1,12 @@
from flask import current_app
from extensions import flask_app
def with_app_context(func):
def wrapper(*args, **kwargs):
with current_app.app_context():
if flask_app is None:
raise RuntimeError("Flask app is not initialized")
with flask_app.app_context():
return func(*args, **kwargs)
return wrapper