Skip to main content

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

  1. Get workstation H.P.009-CONFIG from PostgreSQL
  2. Call GCP Workstations API :start operation
  3. Poll status every 3s (max 10 retries = 30s)
  4. If STATE_RUNNING: Generate signed URL → Update DB → Publish event → Return URL
  5. 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