Skip to content

Dashboard queue and sweep launch idle billable instances: a job's command never reaches user-data, completion = TTL death, sweep $/hr default is 9x low, member errors hidden #130

Open

Description

@scttfrdmn

Found by the portal functional audit (2026-11-10, spawn-ts 0.8.1). The Dashboard's Batch job queue and Parameter sweep forms launch real, billable instances that run nothing.

Queue. buildQueue puts each job's command only into sweep.parameters, which becomes the spawn:param:command tag (dist/core/queue.js:134-147). EC2Provider.launch never passes a command to buildLinuxBootstrap (aws/ec2.js:115-130), although userdata.js supports one (commandBlock, :193). spored doesn't read spawn:param:command (spawn/pkg/agent has no reader). So the job never runs.

The fan-out then marks a member "completed" as soon as its instance is no longer live (core/fanout.js:189-201). That happens when the TTL kills it, and only then do its dependents launch. The example config pre-filled in the form launches two c6a.xlarge for 20 min each, one after the other, doing nothing, and reports "2 completed".
Evidence: the audit submitted the default form. The last RunInstances carried spawn:param:command=make, and its 1,775-byte user-data contains no make.

Sweep.

  • No workload input exists, so a sweep is N idle instances tagged with parameters.
  • The form has no instance-type field, so it uses the default c6a.xlarge, but the $/hr field defaults to 0.017 (ui/dashboard.js:129). c6a.xlarge is about $0.153/h in us-east-1, so the cost meter under-reports by about 9×, and the figure is a static price with no label saying so.
  • The audit's default grid (lr=0.01,0.1 bs=32,64) issued 4 RunInstances.

Feedback. A member's launch error is stored in status.error (fanout.js:236-238), but renderSweeps() shows only a "N failed" count (dashboard.js:420-426). The user never sees why.

Fix:

  • Either wire command through to user-data and have completion mean the command exited (as Go's queue runner does), or remove the queue and sweep forms from the Dashboard until it does. A launcher for idle machines shouldn't present itself as a job runner.
  • Give the sweep form an instance type, and derive $/hr from truffle-ts with its origin label.
  • Show per-member errors.

Activity

  1. added this to the Hardening milestone on Nov 10, 2026
  2. added
    bug
    area: ui
    cost-safety
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: uibugcost-safety

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions