WF-031: Workstation Start Flow
Priority: P0 (Critical) | Phase: Phase 1C - Workstation Management | Effort: 10 hours
Overview
Starts GCP Cloud Workstation, polls until running (30s timeout), generates signed access URL (8h TTL), and returns to user.
Trigger: POST /workstation/start | Duration: ~15-30 seconds
Flow
- Get workstation H.P.009-CONFIG from PostgreSQL
- Call GCP Workstations API
:startoperation - Poll status every 3s (max 10 retries = 30s)
- If
STATE_RUNNING: Generate signed URL → Update DB → Publish event → Return URL - If timeout: Return 504 error
Testing
- Workstation starts successfully
- Access URL generated with 8h expiry
- Timeout handled (30s)
- Status updated in database
- Event published
Status: ✅ Ready for Implementation