osrd icon indicating copy to clipboard operation
osrd copied to clipboard

editoast: train-simulation: return SimulationFailed on 500 from core

Open Castavo opened this issue 7 months ago • 1 comments

When core.fetch returns an Error made from a 500 from core, train_simulation returns Ok(SimulationResponse::SimulationFailed) rather than an Error.

This allows to still be able to call train_schedule/simulation_summary when one of the trains leads to an error in core (an assert error for example).

I left other error status codes fail because they'll likely be transient, what do you think ?

Castavo avatar Jul 07 '24 10:07 Castavo