bug fix
This commit is contained in:
@@ -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")),
|
||||
|
||||
Reference in New Issue
Block a user