Skip to content

Add GET /status endpoint - #96

Merged
badtst merged 3 commits into
mainfrom
feat/status-endpoint
Aug 25, 2026
Merged

badtst merged 3 commits into
mainfrom
feat/status-endpoint

Conversation

@badtst

@badtst badtst commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Description

Adds a GET /status endpoint to provide admins with a snapshot of wardens status

  • queue depth (PENDING jobs)
  • current job
  • current sessions
    e.g.
{
  "pending_jobs_count": 3,
  "current_job": {"id": 3, ...},
  "open_sessions": [{"id": ...}, ...]
}

This should help admins monitor Warden's status. This can be useful for example in the case of a maintenance to check that the qpu queue is indeed empty before stopping warden. Or can help track hung sessions.

/status can be extended with sub-routes to expand on the information provided by warden i.e. more detail about pending jobs or an endpoint dedicated to the future qpu slots.

@github-actions

Copy link
Copy Markdown

⚠️ critical vulnerabilities were detected in generated SBOM artifacts

SBOM vulnerability check

⚠️ Found 1 critical vulnerability entries across SBOM artifacts.

Total vulnerabilities observed: 4

warden-sbom-mariadb.cdx.json

  • Severity breakdown: CRITICAL: 1, HIGH: 1
  • Critical vulnerabilities:
Vulnerability Severity Component(s) Reference
CVE-2025-65896 CRITICAL asyncmy@0.2.11 link

warden-sbom-pg.cdx.json

  • Severity breakdown: HIGH: 1

warden-sbom.cdx.json

  • Severity breakdown: HIGH: 1

@badtst badtst self-assigned this Aug 25, 2026
else None
)

open_sessions_result = await db_session.execute(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: maybe order them by creation date?

Comment thread warden/api/routes/status.py
@badtst
badtst merged commit d97694f into main Aug 25, 2026
14 checks passed
@badtst
badtst deleted the feat/status-endpoint branch August 25, 2026 15:11
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.

2 participants