# Cron Run Durations block

> Cron job run duration bars with status tones, a timeout line and a Run now toolbar

A cron job's last 20 or 50 runs as Recharts bars tinted by outcome under a dashed timeout line, with a succeeded and p95 readout. Hover reads a run's id and status; Run now, pause and CSV export sit in the toolbar. ReUI Frame, Badge. Job history.

- Type: Pro block
- Category: [Bar Chart](https://reui.io/blocks/chart/bar-chart.md)
- Page: https://reui.io/blocks/chart/bar-chart/chart-33
- MCP: `get_block("chart-33")`
- Built with: Badge, Button, Dropdown Menu, Frame, Spinner, Toggle Group
- Installs with a ReUI Pro or Ultimate license; setup: https://reui.io/docs/license-setup

## Best for

One job's last 20 or 50 runs as status tinted bars under a timeout line, where Run now adds a bar and Export CSV downloads a file

## Agent notes

- Replace `JOB` in data.tsx with your job and runs, newest first; `nextId` reads the number in the newest id, so keep ids shaped like RUN-58418
- `runNow` fakes the run: after `MANUAL_RUN` finishMs a timer adds a succeeded bar with a canned duration, so call your scheduler there
- `togglePause` only flips local `paused` state and fires a sonner `toast`; no schedule stops, while Export CSV and the run ID copy do work

## When not to use

- A drawer for one job with per run logs, a cron field breakdown and Retry: use [Cron Job Detail](https://reui.io/blocks/application/sheet/sheet-12.md) (`get_block("sheet-12")`)
- Many jobs at once, each row with its own strip of recent runs and a fleet summary: use [Cron Run History](https://reui.io/blocks/chart/status-tracker/chart-34.md) (`get_block("chart-34")`)

## Install

```bash
npx shadcn@latest add @reui/chart-33
```

## About Bar Chart blocks

### When to use

- Values compared across hours, days or categories as grouped, stacked or hatched columns
- Run durations or event volumes against a timeout or limit line, with outcome toggles
- Segmented meters that split a capacity, a fund or a heart rate zone into colored slices

### When not to use

- A share of a whole where the slices read better around a ring: use the [Pie Chart blocks](https://reui.io/blocks/chart/pie-chart.md)
- A progress reading shown as an arc gauge with a status label: use the [Radial Chart blocks](https://reui.io/blocks/chart/radial-chart.md)
- Rows of jobs or deploys, each with its own run history strip: use the [Status Tracker blocks](https://reui.io/blocks/chart/status-tracker.md)

### Agent notes

- `Chart` renders with no props, so every bar, meter value and limit comes from constants kept in the block folder

Every ReUI item has a twin like this one; the index is https://reui.io/llms.txt. Agents with the ReUI MCP (https://reui.io/docs/mcp) get the same guidance from the getters named above.
