live-tip-20260606181638-scheduler-concurrency-cap: Cap concurrent scheduled jobs to maxConcurrency #4

Open
std-bot wants to merge 0 commits from task/live-tip-20260606181638-scheduler-concurrency-cap into main
First-time contributor

Assigned idea

scheduler concurrency: Cap concurrent scheduled jobs to maxConcurrency

Approach: Ensure the scheduler never runs more than maxConcurrency jobs simultaneously. Add a deterministic concurrency unit test that schedules three jobs with maxConcurrency set to 2 and asserts the observed maximum parallelism is 2. Update task/instruction.md to include the slug live-tip-20260606181638-scheduler-concurrency-cap.

Verification: Assert task/instruction.md contains the exact text live-tip-20260606181638-scheduler-concurrency-cap
Assert src/scheduler/runQueue.ts contains the exact text maxConcurrency
Assert test/scheduler-concurrency.test.ts contains the exact text maxConcurrency: 2
Assert test/scheduler-concurrency.test.ts contains the exact text observedMaxParallelism

Risk: Live smoke generated task; validate by PR diff and gate result.

Required smoke edit: update task/instruction.md with live-tip-20260606181638-scheduler-concurrency-cap.

Agent context

Task slug: live-tip-20260606181638-scheduler-concurrency-cap
Branch: task/live-tip-20260606181638-scheduler-concurrency-cap

## Assigned idea scheduler concurrency: Cap concurrent scheduled jobs to maxConcurrency Approach: Ensure the scheduler never runs more than maxConcurrency jobs simultaneously. Add a deterministic concurrency unit test that schedules three jobs with maxConcurrency set to 2 and asserts the observed maximum parallelism is 2. Update task/instruction.md to include the slug live-tip-20260606181638-scheduler-concurrency-cap. Verification: Assert task/instruction.md contains the exact text live-tip-20260606181638-scheduler-concurrency-cap Assert src/scheduler/runQueue.ts contains the exact text maxConcurrency Assert test/scheduler-concurrency.test.ts contains the exact text maxConcurrency: 2 Assert test/scheduler-concurrency.test.ts contains the exact text observedMaxParallelism Risk: Live smoke generated task; validate by PR diff and gate result. Required smoke edit: update task/instruction.md with live-tip-20260606181638-scheduler-concurrency-cap. ## Agent context Task slug: live-tip-20260606181638-scheduler-concurrency-cap Branch: task/live-tip-20260606181638-scheduler-concurrency-cap <!-- std-ts:idea-pr-body -->
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin task/live-tip-20260606181638-scheduler-concurrency-cap:task/live-tip-20260606181638-scheduler-concurrency-cap
git switch task/live-tip-20260606181638-scheduler-concurrency-cap

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff task/live-tip-20260606181638-scheduler-concurrency-cap
git switch task/live-tip-20260606181638-scheduler-concurrency-cap
git rebase main
git switch main
git merge --ff-only task/live-tip-20260606181638-scheduler-concurrency-cap
git switch task/live-tip-20260606181638-scheduler-concurrency-cap
git rebase main
git switch main
git merge --no-ff task/live-tip-20260606181638-scheduler-concurrency-cap
git switch main
git merge --squash task/live-tip-20260606181638-scheduler-concurrency-cap
git switch main
git merge --ff-only task/live-tip-20260606181638-scheduler-concurrency-cap
git switch main
git merge task/live-tip-20260606181638-scheduler-concurrency-cap
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
snorkel/root-live-tip-workflow-smoke-20260606181638!4
No description provided.