Skip to content

spawn launch drops --spot-max-price on a single launch (only the batch-queue path reads it) #1388

Closed

Description

@scttfrdmn

Found while fixing #1366.

--spot-max-price is registered (cmd/launch_flags.go:313) but its variable spotMaxPrice is read in exactly two places on main at 17f5463:

buildLaunchConfig never reads it (it sets SpotMaxPrice only from piped truffle input, cmd/launch_config.go:128), and nothing in runLaunch/launchWithProgress does either. So spawn launch --spot --spot-max-price 0.10 ... launches a Spot instance with no max price (EC2 caps at the on-demand rate), and --dry-run shows no (max $X/hr) because config.SpotMaxPrice is empty.

Evidence: grep -n 'spotMaxPrice' cmd/*.go | grep -v _test. Code trace only, not run on AWS.

Fix is one line in buildLaunchConfig (if spotMaxPrice != "" { config.SpotMaxPrice = spotMaxPrice }), which would also make the sweep copy in sweepBaseConfig redundant. It is a behaviour change for single launches (a cap that was ignored starts applying), so it belongs under Changed.

Activity

  1. added
    bug
    area:launch
    on Oct 28, 2026
  2. added this to the v0.148.0 milestone on Oct 28, 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:launchbugcomponent:spawntype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions