-
Notifications
You must be signed in to change notification settings - Fork 3
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
Throw an error when there is no database loaded yet #295
Comments
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After We could throw "503 Service Unavailable" and set a configurable Retry-After header. From experience, maintainers will roughly know how long SILO takes to read initial data, so they could pass that value into SILO. We could set the header to "start time of SILO + initial startup period". On CoV-Spectrum, we could check that header and display a message when users should try again. |
The 503 and Retry-After idea sounds good to me. |
See GenSpectrum/LAPIS-SILO#295 SILO throws an error now when it did not load a database yet.
See GenSpectrum/LAPIS-SILO#295 SILO throws an error now when it did not load a database yet.
See GenSpectrum/LAPIS-SILO#295 SILO throws an error now when it did not load a database yet.
So that it doesn't show "count = 0" when it's still loading the initial database.
The text was updated successfully, but these errors were encountered: