fix(cloud): launch workers asynchronously and auto-poll provisioning

This commit is contained in:
Benjamin Shafii
2026-02-21 21:09:53 -08:00
parent af24d4cedf
commit f0f93273a3
4 changed files with 190 additions and 65 deletions

View File

@@ -62,6 +62,7 @@ pnpm db:migrate
- `GET /v1/me`
- `GET /v1/workers` (list recent workers for signed-in user/org)
- `POST /v1/workers`
- Cloud launches return `202` quickly with worker `status=provisioning` and continue provisioning asynchronously.
- Returns `402 payment_required` with Polar checkout URL when paywall is enabled and entitlement is missing.
- `GET /v1/workers/:id`
- Includes latest instance metadata when available.