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

Implement a servers.url selecting logic in uptime monitoring #164

Open
newgene opened this issue May 4, 2022 · 0 comments
Open

Implement a servers.url selecting logic in uptime monitoring #164

newgene opened this issue May 4, 2022 · 0 comments
Assignees

Comments

@newgene
Copy link
Contributor

newgene commented May 4, 2022

The current logic in src/utils/monitor.py is to pick the first entry from the servers block of API metadata:

self.api_server = api_doc['servers'][0]['url']

We should implement a more flexible logic to pick the "preferred" servers.url entry for the uptime monitoring.

We can use the same logic from the BTE project, documented here:

biothings/biothings_explorer#442

also summarized in:

NCATSTranslator/TranslatorArchitecture#71 (comment)

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

No branches or pull requests

2 participants