Skip to content

Add weighted CRF scheduling - #17

Draft
mjc wants to merge 5 commits into
mjc/abav1-214-stack-09-worker-durability-acknowledgementsfrom
mjc/abav1-214-stack-10-weighted-crf-scheduling
Draft

Add weighted CRF scheduling#17
mjc wants to merge 5 commits into
mjc/abav1-214-stack-09-worker-durability-acknowledgementsfrom
mjc/abav1-214-stack-10-weighted-crf-scheduling

Conversation

@mjc

@mjc mjc commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Stack 11 of 13. Depends on 09-worker-durability-acknowledgements.

This adds a weighted worker mode that runs a configured number of CRF searches per encode while remaining serial, with queue fallback when the preferred job type is unavailable.

Operators can bias a worker toward search throughput without enabling multiplexed concurrency. The scheduler state survives connection replacement so reconnects do not reset the ratio.

Tests added in this branch cover CLI mode/ratio validation, announcement metadata, exact N-to-one job selection, encode fallback when the CRF queue is empty, serial active-job enforcement, waiting for completion, state preservation across reconnect, and separation from the existing both capacity policy.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 3959e301-17a1-4799-90c0-9f8bc18415a3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant