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

Add a status call for the update API #780

Merged
merged 4 commits into from
Mar 6, 2024
Merged

Conversation

lonvia
Copy link
Collaborator

@lonvia lonvia commented Mar 5, 2024

This adds a new API endpoint /nominatim-update/status. It returns "OK" if the /nominatim-update endpoint is usable and "BUSY" if an update is ongoing. It can be used to poll the server during an update cycle.

Using this endpoint, the continuous update script can be switched back to triggering updates via the API.

Also adds a check that the necessary data tables for updates are there when starting up the server. If they are missing, the update endpoints are disabled and you get a 404.

@lonvia lonvia merged commit 7dffe61 into komoot:master Mar 6, 2024
4 checks passed
@lonvia lonvia deleted the update-status-api branch March 6, 2024 08:27
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

Successfully merging this pull request may close these issues.

1 participant