Update config.py
Browse files
config.py
CHANGED
@@ -117,11 +117,13 @@ def decode_access_token(token: str):
|
|
117 |
def setup_app(app: FastAPI):
|
118 |
@app.on_event("startup")
|
119 |
async def startup_event():
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
|
|
|
|
|
117 |
def setup_app(app: FastAPI):
|
118 |
@app.on_event("startup")
|
119 |
async def startup_event():
|
120 |
+
# Temporarily disable the analyze_all_patients task due to missing analyze_patient function
|
121 |
+
# asyncio.create_task(analyze_all_patients())
|
122 |
+
logger.info("Startup event triggered, analyze_all_patients task disabled until implementation.")
|
123 |
+
|
124 |
+
# async def analyze_all_patients():
|
125 |
+
# from analysis import analyze_patient
|
126 |
+
# patients = await patients_collection.find({}).to_list(length=None)
|
127 |
+
# for patient in patients:
|
128 |
+
# await analyze_patient(patient)
|
129 |
+
# await asyncio.sleep(0.1)
|