This commit is contained in:
喆OvO
2026-08-12 09:50:37 +08:00
parent cc43873ad2
commit 15b54f204e
10 changed files with 360 additions and 41 deletions
+3
View File
@@ -62,6 +62,9 @@ _maybe_start_scheduler()
if os.environ.get("FLASK_DISABLE_SCHEDULER", "").lower() not in ("1", "true", "yes"):
start_watchdog(app, db_url)
# 跨 worker SSE 广播(PG LISTEN/NOTIFY):控制端的事件能到达任意 worker 的显示端
app.event_bus.attach(db_url)
if __name__ == "__main__":
import atexit