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
@@ -25,6 +25,9 @@ if __name__ == "__main__":
if try_acquire_scheduler_lock(db_url):
start_scheduler(app)
# 跨进程 SSE 广播(PG LISTEN/NOTIFY)
app.event_bus.attach(db_url)
try:
bind_host = os.environ.get("FLASK_BIND", "127.0.0.1")
app.run(host=bind_host, port=int(os.environ.get("FLASK_PORT", "5001")),