8000 feature: healthcheck ready wait for all data sources load by charlottebrady · Pull Request #803 · permitio/opal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feature: healthcheck ready wait for all data sources load #803

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

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

charlottebrady
Copy link
@charlottebrady charlottebrady commented Jul 3, 2025

Fixes Issue

Closes #801

Changes proposed

This PR:
🌟 Adds a query to the /ready endpoint, defaults to false to maintain current behaviour.
🌟 Propagates the query through the system to the is_ready healthcheck method
🌟 If the query parameter = True, then we mark the system as 'ready' when the number of successful data transactions matches the total number of expected data transactions (defined from the opal data config sources)

  • One issue I can see with this is that the /healthy endpoint should check the system is 'ready' (as defined by the ready endpoint) with a little extra too. However, I have not touched the /healthy code here.
  • This should require a documentation update which I have not done yet.

Check List (Check all the applicable boxes)

  • I sign off on contributing this submission to open-source
  • My code follows the code style of this project.
  • My change requires changes to the documentation.
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • This PR does not contain plagiarized content.
  • The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

Copy link
netlify bot commented Jul 3, 2025

Deploy Preview for opal-docs canceled.

Name Link
🔨 Latest commit 7374cbf
🔍 Latest deploy log https://app.netlify.com/projects/opal-docs/deploys/6866a9a02d5a050008e26811

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.

/ready healthcheck to be dependant on initial data sources load
1 participant
0