Skip to content
Back

Job queuePro

The work waiting for your agents and how fast it moves – a live queue, workers running jobs as growing bars, Done and Failed, and a depth chart that shows the backlog build up under a rate limit and drain after.

oxyn add job-queue
Queueagent-workLive4
Waiting
4
Running
4/4
Throughput
70/min
Wait p95
12s
Queue 4
Workers 4/4
Sonnet 4.5
GPT-5
Gemini 2.5 Flash
Haiku 4.5
✓Done265
✕Failed7
Queue depth
24120
96s agonow
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • The work waiting for your agents and how fast it moves: a live queue, workers running jobs as growing bars, Done and Failed, the four numbers, and a depth chart that shows the backlog build up when a rate limit pauses the workers and drain when they resume.

When not to use

  • An agent asks before it acts: use Approval Card instead.
  • Several open requests in one card: use Approval pager instead.
  • An agent's question in its own card above the composer: use Decision Card instead.

Installation

Job queue is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add job-queue

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Default

Jobs drop into the queue, glide onto free workers as growing bars and land in Done or Failed; every pass a rate limit stops the workers, the backlog climbs past the backpressure line and drains after.

Queueagent-workLive4
Waiting
4
Running
4/4
Throughput
70/min
Wait p95
12s
Queue 4
Workers 4/4
Sonnet 4.5
GPT-5
Gemini 2.5 Flash
Haiku 4.5
✓Done265
✕Failed7
Queue depth
24120
96s agonow
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Limited

A rate limit with its countdown: running jobs paused, Waiting amber above the line, an amber stretch on the chart.

Queueagent-workRate limited · 3s4
Waiting
15
Running
4/4
Throughput
60/min
Wait p95
12s
Queue 15
Workers 4/4
Sonnet 4.5
GPT-5
Gemini 2.5 Flash
Haiku 4.5
✓Done277
✕Failed8
Queue depth
24120
96s agonow
Rate limited – workers paused for 3 seconds
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Paused

Paused by hand: a grey pill, Resume, the workers waiting.

Queueagent-workPaused4
Waiting
15
Running
4/4
Throughput
58/min
Wait p95
12s
Queue 15
Workers 4/4
Sonnet 4.5
GPT-5
Gemini 2.5 Flash
Haiku 4.5
✓Done265
✕Failed7
Queue depth
24120
96s agonow
Queue paused
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

One worker

One worker: the queue grows and the rest show as a grid of dots by kind.

Queueagent-workRate limited · 8s1
Waiting
16
Running
1/1
Throughput
61/min
Wait p95
12s
Queue 16
Workers 1/1
Sonnet 4.5
✓Done272
✕Failed7
Queue depth
24120
96s agonow
Rate limited – workers paused for 8 seconds
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Card

A job's card: how long it waited, its place, priority and attempt, with Cancel and Move to front.

Queueagent-workRate limited · 3s4
Waiting
15
Running
4/4
Throughput
60/min
Wait p95
12s
Queue 15
Workers 4/4
Sonnet 4.5
GPT-5
Gemini 2.5 Flash
Haiku 4.5
✓Done277
✕Failed8
Queue depth
24120
96s agonow
Rate limited – workers paused for 3 seconds
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Narrow

Under 600 px the flow stacks: queue, then workers (marks only), then Done and Failed side by side.

Queueagent-workLive4
Waiting
4
Running
4/4
Throughput
70/min
Wait p95
12s
Queue 4
Workers 4/4
Sonnet 4.5
GPT-5
Gemini 2.5 Flash
Haiku 4.5
✓Done265
✕Failed7
Queue depth
24120
96s agonow
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Classic

Classic style: mixed-case labels, the numbers and the chart in inset panels.

Queueagent-workRate limited · 3s4
Waiting
15
Running
4/4
Throughput
60/min
Wait p95
12s
Queue 15
Workers 4/4
Sonnet 4.5
GPT-5
Gemini 2.5 Flash
Haiku 4.5
✓Done277
✕Failed8
Queue depth
24120
96s agonow
Rate limited – workers paused for 3 seconds
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

JobQueue

PropTypeDefaultDescription
titleString"Queue"Heading.
nameString"agent-work"The queue's name, muted next to the title.
workersusize4Workers at the start (1–8).
atOption<u64>Default::default()Freeze the demo this many ms into a pass.
pausedboolDefault::default()Start paused.
open_atOption<usize>Default::default()A job whose card is open at the start (its place in the queue, 0 = front).
nowrequiredClockMs—The clock.
styleStringDefault::default()`clean`, `classic`, or empty to follow `data-cstyle`.
on_paused_changeEventHandler<bool>—Pause (`true`) or resume.
on_concurrency_changeEventHandler<usize>—The number of workers changed.
on_promoteEventHandler<String>—Move to front (job id).
on_cancelEventHandler<String>—Cancel a waiting job (job id).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabInto the jobs (the front job is the one stop), then the card's buttons
EnterorSpaceOpens or closes the focused job's card
EscCloses the card

Accessibility

  • Every job is a button named with its kind, how long it waited or ran, its place in line, priority and attempt.
  • Pause is a toggle with aria-pressed; the stepper's buttons say what they do and the count is announced.
  • The chart is an image summarised in words; rate limits, pauses and crossing the backpressure line are announced politely.

Responsive behaviour

  • 756 px up to its container.
  • Under 600 px the flow stacks and the four numbers wrap to two columns; under 440 px Pause and the stepper get their own row.
Edge cases (spec)

Under 600 px the flow stacks: queue, workers (marks only), Done and Failed side by side; the numbers wrap to two columns. Under 440 px Pause and the stepper take their own row.

Notes for AI

  • Import JobQueue from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: JobQueueEl in oxyn_gpui.
  • Props to set first: now.
  • It reads a clock (now) for live timers; pass one clock for the whole page rather than one per component.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI