Skip to content

feat: add canonical warmup cords (kick + status) with versioned schema#57

Open
amussara wants to merge 1 commit intochutesai:mainfrom
amussara:feat/warmup-cords
Open

feat: add canonical warmup cords (kick + status) with versioned schema#57
amussara wants to merge 1 commit intochutesai:mainfrom
amussara:feat/warmup-cords

Conversation

@amussara
Copy link

Implements the warmup cords interface requested in #31, providing:

  • WarmupCords controller class with background warmup lifecycle
  • POST /warmup/kick endpoint (idempotent, returns 202-style response)
  • GET /warmup/status endpoint (versioned chutes.warmup.status.v1 schema)
  • Readiness bridge: only reports state=ready when GET /v1/models returns 200
  • Configurable phases with progress tracking and custom callbacks
  • mount_warmup_cords() helper for easy integration with any Chute
  • Comprehensive test suite (26 tests covering models, lifecycle, idempotency, phase transitions, readiness gate, timeouts, errors)

Closes #31

Implements the warmup cords interface requested in chutesai#31, providing:

- WarmupCords controller class with background warmup lifecycle
- POST /warmup/kick endpoint (idempotent, returns 202-style response)
- GET /warmup/status endpoint (versioned chutes.warmup.status.v1 schema)
- Readiness bridge: only reports state=ready when GET /v1/models returns 200
- Configurable phases with progress tracking and custom callbacks
- mount_warmup_cords() helper for easy integration with any Chute
- Comprehensive test suite (26 tests covering models, lifecycle,
  idempotency, phase transitions, readiness gate, timeouts, errors)

Closes chutesai#31
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.

Request: Canonical warmup cords (kick + status) with versioned schema and readiness bridge

1 participant

Comments