From 9df472b11c0b9cbf38d186aed1435fdafee75448 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Mon, 2 Jun 2025 19:11:31 +0800 Subject: [PATCH] We should return immediately --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index bc16fb2..1101e9b 100644 --- a/main.py +++ b/main.py @@ -2845,7 +2845,7 @@ async def fastapi_run_simulation_manually_by_date(data: Run_Simulation_Manually_ thread = threading.Thread(target=lambda: run_simulation_manually_by_date(item['name'], base_date)) thread.start() - thread.join() + # thread.join() matched_keys = redis_client.keys(f"*{item['simulation_date']}*") redis_client.delete(*matched_keys)