Skip to content

Add configuration to disable batch-requeuing #221

Merged
DanverImbue merged 5 commits into
mainfrom
danver/add-config-to-disable-requeuing
May 22, 2026
Merged

Add configuration to disable batch-requeuing #221
DanverImbue merged 5 commits into
mainfrom
danver/add-config-to-disable-requeuing

Conversation

@danverbraganza
Copy link
Copy Markdown
Collaborator

We added batch-requeuing to hegde against long-running tests and to help stuck batches by splitting and resubmitting them.

This feature may not be desired by everyone, so this MR allows disabling of this feature.

DanverImbue and others added 4 commits May 22, 2026 14:31
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Add a new bool field on OffloadConfig (default true) that will gate
the scheduler's on-pop re-queue policy. Default-true preserves the
current behavior; this commit only introduces the field and updates
all OffloadConfig struct literals across the source tree and tests.

Includes TOML parse tests covering the default and explicit-set cases.

Refs: code-vsml

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Thread the new OffloadConfig flag through Scheduler::new and extract
the inline re-queue logic from pop() into a single &self method
enqueue_followups. The method is a no-op when the flag is false,
so batches run exactly once. Default-true preserves the prior
hedging behavior (multi-test halving and singleton retry-counter).

The new method takes &self because the Scheduler is shared across
workers via Arc and uses interior mutability via Mutex/Notify; no
mutation requires &mut self.

All existing call sites pass true to preserve behavior. Adds a test
exercising the false branch for both multi-test and singleton batches.

Refs: code-vsml

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vet found 0 issues.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vet found 0 issues.

@DanverImbue DanverImbue merged commit 30ce39a into main May 22, 2026
7 checks passed
@DanverImbue DanverImbue deleted the danver/add-config-to-disable-requeuing branch May 22, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants