We should return immediately

This commit is contained in:
DingZQ
2025-06-02 19:11:31 +08:00
parent 0f471a1903
commit 9df472b11c

View File

@@ -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 = threading.Thread(target=lambda: run_simulation_manually_by_date(item['name'], base_date))
thread.start() thread.start()
thread.join() # thread.join()
matched_keys = redis_client.keys(f"*{item['simulation_date']}*") matched_keys = redis_client.keys(f"*{item['simulation_date']}*")
redis_client.delete(*matched_keys) redis_client.delete(*matched_keys)