-
Notifications
You must be signed in to change notification settings - Fork 32
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
SARS-CoV-2-Queries API not working #477
Comments
After first inspection, it looks like this repo works fine, it just takes a while to load, so at some point it times out. Increasing the gunicorn timeout "fixes" the issue, but it feels more like masking the issue and not really addressing it. |
It looks like the bottle neck is fetching the files in the repo. In terms of size, it is not too much, but because https:/egonw/SARS-CoV-2-Queries/tree/master/grlc contains 50+ files, One way to optimise this is to cache the GitHub requests (using requests-cache). The first time the https://grlc.io/api-git/egonw/SARS-CoV-2-Queries/subdir/grlc is called, it will still time out. But calling it a second time will load the API properly. We could keep the repo cached for a reasonable amount of time (30 days?) and any subsequent calls in that time period would not time out. What do you think @egonw? Would that work for you? |
https://grlc.io/api-git/egonw/SARS-CoV-2-Queries/subdir/grlc API is not working https:/egonw/SARS-CoV-2-Queries/tree/master/grlc
Reported by @egonw
The text was updated successfully, but these errors were encountered: