Modify the /generate_model and /sim_runner endpoints to initiate long-running tasks asynchronously. This change will prevent web requests from timing out and allow users to navigate away from the page without interrupting the process. Consider using a task queue like Celery with Redis or RabbitMQ as the message broker.
Modify the /generate_model and /sim_runner endpoints to initiate long-running tasks asynchronously. This change will prevent web requests from timing out and allow users to navigate away from the page without interrupting the process. Consider using a task queue like Celery with Redis or RabbitMQ as the message broker.