diff --git a/crawler/__pycache__/db_merge.cpython-39.pyc b/crawler/__pycache__/db_merge.cpython-39.pyc new file mode 100644 index 0000000..f0a99d7 Binary files /dev/null and b/crawler/__pycache__/db_merge.cpython-39.pyc differ diff --git a/crawler/__pycache__/extractor_ai.cpython-39.pyc b/crawler/__pycache__/extractor_ai.cpython-39.pyc new file mode 100644 index 0000000..b2859a7 Binary files /dev/null and b/crawler/__pycache__/extractor_ai.cpython-39.pyc differ diff --git a/crawler/__pycache__/panel_schema.cpython-39.pyc b/crawler/__pycache__/panel_schema.cpython-39.pyc new file mode 100644 index 0000000..711058a Binary files /dev/null and b/crawler/__pycache__/panel_schema.cpython-39.pyc differ diff --git a/crawler/__pycache__/realtime_conflict_service.cpython-39.pyc b/crawler/__pycache__/realtime_conflict_service.cpython-39.pyc index 2eefef1..6901c52 100644 Binary files a/crawler/__pycache__/realtime_conflict_service.cpython-39.pyc and b/crawler/__pycache__/realtime_conflict_service.cpython-39.pyc differ diff --git a/crawler/realtime_conflict_service.py b/crawler/realtime_conflict_service.py index 0410f24..6e278f5 100644 --- a/crawler/realtime_conflict_service.py +++ b/crawler/realtime_conflict_service.py @@ -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) diff --git a/server/data.db-shm b/server/data.db-shm index 49b8a41..45a9882 100644 Binary files a/server/data.db-shm and b/server/data.db-shm differ diff --git a/server/data.db-wal b/server/data.db-wal index 61b6075..f85fcc0 100644 Binary files a/server/data.db-wal and b/server/data.db-wal differ