Skip to content

slot-filler: a queue item can ask for its own capacity (capacityMb) before it starts #1335

Done

Description

@scuttletoby

Problem

The slot filler's capacity rules are per machine and per item kind (for example writers checked with t3-capacity 1536). A writer whose task needs more memory (a browser test, a Gradle build: 3072 MB) starts on the writer's smaller check, then waits inside the agent for its own larger capacity check, for 30 minutes up to hours, holding a slot and a reservation the whole time.

Change

  • An optional queue (and backlog) item field capacityMb (a whole number above 0).
  • When set, the filler asks that machine's capacity rule for the item's kind with this number in place of the kind's: the command's last argument when it is a whole number, and a free rule's availableMb.
  • Until that passes, the item stays queued with a log note "waiting for N MB on <machine>".
  • The value is checked when the item is read; a bad one refuses the item with a message (kept, logged once).
  • Items without it, and configs as they are, behave exactly as before.
  • README and the fork-kit table row are updated.

🤖 Generated with Claude Code

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions