fix: 修复数据报错

This commit is contained in:
Daniel
2026-03-02 11:50:35 +08:00
parent 004d10b283
commit 783a69dad1
7 changed files with 8 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -362,6 +362,14 @@ def startup():
fetch_gdelt_events()
@app.on_event("shutdown")
def shutdown():
try:
scheduler.shutdown(wait=False)
except Exception:
pass
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)

Binary file not shown.

Binary file not shown.