We should return immediately
This commit is contained in:
2
main.py
2
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 = 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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user