live-tip-20260606181638-scheduler-concurrency-cap: Cap concurrent scheduled jobs to maxConcurrency #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "task/live-tip-20260606181638-scheduler-concurrency-cap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.