Skip to content

Expose /healthz and /readiness endpoints even if API_KEY is not set#2077

Merged
PawelPeczek-Roboflow merged 4 commits intomainfrom
healthz-endpoint
Mar 6, 2026
Merged

Expose /healthz and /readiness endpoints even if API_KEY is not set#2077
PawelPeczek-Roboflow merged 4 commits intomainfrom
healthz-endpoint

Conversation

@ecarrara
Copy link
Contributor

@ecarrara ecarrara commented Mar 4, 2026

What does this PR do?

Move API_KEY check inside the PRELOAD_MODELS branch so it no longer gates the entire startup/preloading block. This allows dedicated deployments to start up and serve /healthz and /readiness endpoints for liveness and readiness probes even when API_KEY is not set.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

Testing

Test details: Deploy a dedicated deployment and verify the pod transitions through startup and readiness probes correctly. ✅

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code where necessary, particularly in hard-to-understand areas
  • My changes generate no new warnings or errors
  • I have updated the documentation accordingly (if applicable)

Move API_KEY check inside the PRELOAD_MODELS branch so dedicated
deployments can use /healthz and /readiness endpoints for liveness
and readiness probes.
@CLAassistant
Copy link

CLAassistant commented Mar 4, 2026

CLA assistant check
All committers have signed the CLA.

hansent
hansent previously approved these changes Mar 4, 2026
Copy link
Collaborator

@hansent hansent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hansent
Copy link
Collaborator

hansent commented Mar 5, 2026

need to make style and I think we decided to refactor abit to clean up / split the log for preloading and separating from DD/serverless flags for attaching the health/readiness endpoints

@ecarrara ecarrara requested a review from hansent March 6, 2026 14:17
Copy link
Collaborator

@hansent hansent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PawelPeczek-Roboflow PawelPeczek-Roboflow merged commit efc5782 into main Mar 6, 2026
15 of 21 checks passed
@PawelPeczek-Roboflow PawelPeczek-Roboflow deleted the healthz-endpoint branch March 6, 2026 15:49
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.

4 participants