Gitpulse
LatestReleasesStand-up
Developing
Size
L
Large: 500-1000 weighted lines
Change Breakdown
Feature75%
Bug Fix15%
Config10%
#3114feat(supervisor): compute workload manager

Workloads being routed through a new compute gateway with suspend and restore capabilities

NI
nicktrn
·#3114feat(supervisor): compute workload manager

A new compute workload manager should allow tasks to be paused and resumed using a dedicated compute gateway, freeing up resources during idle periods.

Here's the LatestUpdated as code changes

Long-running tasks are being prepared for suspension and resumption using a dedicated compute environment. This allows workloads to be snapshotted mid-execution and spun back up later, which should free up resources during idle periods.

Virtual machine creation, snapshotting, and restoration are routed through a central gateway API by a new . When a task needs to be suspended, a is triggered, and an asynchronous callback confirms when the state is safely stored. Upon resuming, the exact CPU, memory, and environment metadata are injected back into the restored machine before it wakes up.

The feature is activated automatically when a is configured in the environment.

This analysis will evolve. Full story with review threads and final assessment available after merge.
View Original GitHub DescriptionFact Check

Adds the ComputeWorkloadManager for routing task execution through the compute gateway, including full checkpoint/restore support.

Changes

Compute workload manager (apps/supervisor/src/workloadManager/compute.ts)

  • Routes VM create, snapshot, delete, and restore through the compute gateway API
  • Wide event logging on create with full timing and context
  • Configurable gateway timeout, auth token, image digest stripping
  • Restore sends name, env override metadata, CPU and memory so the agent can inject them before the VM resumes

Supervisor wiring (apps/supervisor/src/index.ts)

  • Compute mode activated when gateway URL is configured
  • Restore branch derives a unique runnerId per restore cycle, matching iceman's convention
  • Suspend/restore gated behind snapshots enabled flag

Workload server (apps/supervisor/src/workloadServer/index.ts)

  • Suspend handler triggers a compute snapshot (fire-and-forget) when in compute mode with snapshots enabled
  • Snapshot-complete callback endpoint receives the snapshot ID and calls submitSuspendCompletion

Env validation (apps/supervisor/src/env.ts)

  • Compute gateway URL, auth token, and timeout settings
  • Snapshots enabled flag (defaults off — compute mode can run without checkpoints)
  • Metadata URL required when snapshots enabled (validated at startup)
© 2026 · via Gitpulse