Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-restart daily #237

Open
MattiSG opened this issue May 22, 2024 · 0 comments
Open

Auto-restart daily #237

MattiSG opened this issue May 22, 2024 · 0 comments

Comments

@MattiSG
Copy link
Member

MattiSG commented May 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant