Skip to content

spawn pool: create has no --cost-limit; drain on an already-deleted queue retries for 30 s and exits 1 #1183

Closed

Description

@scttfrdmn

Found in experiment E1 (#1171) on spawn v0.135.1.

  1. No cost limit on pools. spawn pool create has no --cost-limit flag, so workers run bounded only by --ttl and --idle-timeout. Every other launch path takes a spend ceiling, and with spawn pool: workers never self-terminate and spin until TTL after drain (cost leak) #1146 (workers never self-terminate) the TTL is the only bound. Add --cost-limit per worker, and pass it to spored like spawn launch does.
  2. Drain isn't idempotent. spawn pool drain on a pool whose queue was already deleted retries for about 30 s and exits 1. A second drain should report "already drained" and exit 0.

Related: #1146, #1147, #1148.

Activity

  1. added this to the v0.136.0 milestone on Oct 19, 2026
  2. added 2 commits that reference this issue on Oct 19, 2026
    d4e2118
    c1726f2
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions