Skip to content

Add Queue Work Unit Breakdown Endpoint#710

Draft
VVoruganti wants to merge 4 commits into
mainfrom
vineeth/dev-1790
Draft

Add Queue Work Unit Breakdown Endpoint#710
VVoruganti wants to merge 4 commits into
mainfrom
vineeth/dev-1790

Conversation

@VVoruganti
Copy link
Copy Markdown
Collaborator

No description provided.

Swap the per-work-unit listing to cursor pagination (CursorPage[T] via
fastapi-pagination + sqlakeyset). Offset pagination would skip or
duplicate rows as workers continuously claim/process items between page
fetches; cursor pagination on (oldest_item_at, work_unit_key) is stable
across these mutations. Threshold config (representation_batch_max_tokens,
flush_enabled) is carried in the page envelope via additional_data.
Wire the cursor-paginated /queue/work-units endpoint through both SDKs:
new SyncCursorPage/AsyncCursorPage in Python and CursorPage<T> in TS,
plus typed QueueWorkUnitsPage* subclasses carrying the deriver-threshold
envelope extras (representation_batch_max_tokens, flush_enabled). Adds
queue_work_units() / queueWorkUnits() on both client and session levels
(sync + async for Python). Also backfills pending_stalled_work_units +
pending_ready_work_units on the existing QueueStatus types so SDK
consumers can read them.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 21, 2026

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: CHILL

Plan: Pro

Run ID: 919ea077-d638-4a04-a129-ce5371944255

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch vineeth/dev-1790

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

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