Skip to content

Rolling sweep queue polls only the first launch config's region, so a multi-region sweep never sees other regions' instances finish #1251

Closed

Description

@scttfrdmn

Noticed while fixing #1248 (PR #1250); not reproduced on AWS.

launchWithRollingQueue (cmd/launch_sweep.go) checks completion by calling ListInstances in launchConfigs[0].Region only. In a sweep whose parameter sets span several regions, instances in the other regions are never seen to finish.

Effect: the active count never drops for them. With --max-concurrent, the queue stalls once those slots fill, and the CLI waits until its own timeout. The instances themselves still end through their own TTL or on-complete, so this is not an instance leak.

Fix: poll every region present in the active set, or track per-instance regions; the sweep state now records region since #1234.

Gate: a two-region rolling sweep with maxConcurrent=1 drains through a fake launcher whose instances finish in both regions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions