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:
but on legislation.demo.openfisca.org/swagger:
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.
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
:but on
legislation.demo.openfisca.org/swagger
: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.