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()
|
fetch_gdelt_events()
|
||||||
|
|
||||||
|
|
||||||
|
@app.on_event("shutdown")
|
||||||
|
def shutdown():
|
||||||
|
try:
|
||||||
|
scheduler.shutdown(wait=False)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import uvicorn
|
import uvicorn
|
||||||
uvicorn.run(app, host="0.0.0.0", port=8000)
|
uvicorn.run(app, host="0.0.0.0", port=8000)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user