appender events and applications are updated

This commit is contained in:
2025-05-06 12:03:58 +03:00
parent dd707b2463
commit e0ae1ee80a
53 changed files with 2358 additions and 829 deletions

View File

@@ -5,8 +5,10 @@ from fastapi.responses import RedirectResponse
cluster_is_set = False
def create_events_if_any_cluster_set():
import Events
global cluster_is_set
if not Events.__all__ or cluster_is_set:
return
@@ -60,7 +62,7 @@ def create_app():
route_register = RouteRegisterController(app=application, router_list=get_routes())
application = route_register.register_routes()
create_events_if_any_cluster_set()
application.openapi = lambda _=application: create_openapi_schema(_)
return application