openfisca / legislation-explorer

Explore legislation formulas and parameters.
https://legislation.demo.openfisca.org
GNU Affero General Public License v3.0
26 stars 13 forks source link

Auto-restart daily #237

Open MattiSG opened 1 month ago

MattiSG commented 1 month ago

Since the legislation explorer loads the spec at start, it needs to be restarted to take into account the latest version of a model. We have auto-update in production for the models, which works for the API, but is not reflected on the legislation explorer. For instance, on api.demo.openfisca.org:

image

but on legislation.demo.openfisca.org/swagger:

image

This also impacts the French legislation explorer, which regularly dies, presumably because of out of memory errors due to the size of the model.

An acceptable solution until a full rewrite would be to restart the service daily, like we do for the model auto-update.