fix: 修复数据报错
This commit is contained in:
BIN
crawler/__pycache__/db_merge.cpython-39.pyc
Normal file
BIN
crawler/__pycache__/db_merge.cpython-39.pyc
Normal file
Binary file not shown.
BIN
crawler/__pycache__/extractor_ai.cpython-39.pyc
Normal file
BIN
crawler/__pycache__/extractor_ai.cpython-39.pyc
Normal file
Binary file not shown.
BIN
crawler/__pycache__/panel_schema.cpython-39.pyc
Normal file
BIN
crawler/__pycache__/panel_schema.cpython-39.pyc
Normal file
Binary file not shown.
Binary file not shown.
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user