legislation-explorer icon indicating copy to clipboard operation
legislation-explorer copied to clipboard

Auto-restart daily

Open MattiSG opened this issue 1 year ago • 0 comments

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.

MattiSG avatar May 22 '24 13:05 MattiSG