# Cron Jobs block

> Dev Ops Cron Jobs Console with Run History Bars, Cron Editor and Job Detail Sheet

Scheduled job grid with enable switches, health tabs, Filters and bulk run or pause, plus run logs, a run time chart and the next runs preview. ReUI Data Grid, Filters, Code Block, Frame. For Kubernetes CronJob, task scheduler.

- Type: Pro block
- Category: [Dev Ops](https://web.dev.reui.io/blocks/solutions/dev-ops.md)
- Page: https://web.dev.reui.io/blocks/solutions/dev-ops/solution-dev-ops-1
- MCP: `get_block("solution-dev-ops-1")`
- Built with: Accordion, Alert, Alert Dialog, Avatar, Badge, Button, Button Group, Chart, Code Block, Collapsible, Data Grid, Dropdown Menu, Empty, Field, Filters, Frame, Hover Card, Icon Tile, Input, Input Group, Item, Number Field, Popover, Progress, Select, Separator, Sheet, Spinner, Switch, Tabs, Toggle Group, Tooltip
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

Scheduled jobs with a per row enable switch, last 20 run bars and a cron parser previewing the next 3 runs by timezone

## Agent notes

- The sample jobs sit in `RAW_JOBS`, and health, the KPIs and the charts all derive from that list
- Run and retry only simulate a run in `runJobs`, which settles after `RUN_RESOLVE_MS` with an outcome from `manualOutcome`
- The only time zones are the 3 fixed offsets in `TIMEZONES`: UTC, New York at UTC-4 and Dublin at UTC+1

## When not to use

- Only the job detail panel is wanted, with no jobs grid or health strip around it: use [Cron Job Detail](https://web.dev.reui.io/blocks/application/sheet/sheet-12.md) (`get_block("sheet-12")`)

## Third-party libraries

- Recharts v3: [API reference](https://recharts.github.io/en-US/api/), [docs](https://recharts.github.io/en-US/guide/getting-started/)
- TanStack Table v9: [API reference](https://tanstack.com/table/v9/docs/framework/react/reference/index), [docs](https://tanstack.com/table/v9/docs/framework/react/quick-start)
- Sonner v2: [API reference](https://sonner.emilkowal.ski/toast), [docs](https://sonner.emilkowal.ski/getting-started)
- Shiki v4: [API reference](https://shiki.style/guide/install), [docs](https://shiki.style/guide/), through ReUI Code Block

## Install

```bash
npx shadcn@latest add @reui/solution-dev-ops-1
```

## About Dev Ops blocks

### When to use

- Platform and SRE consoles for cron jobs, releases, audit trails, SLOs, edge firewalls and data sources
- On call triage of failing jobs, failed deploys, denied access, blocked requests and burning error budgets
- Operator changes made in place: pausing a job, promoting or rolling back, editing rules, rotating credentials

### When not to use

- A single table on your own columns, with no charts, lanes or ops panels around it: use [Data Grid](https://web.dev.reui.io/components/data-grid.md) (`get_component("data-grid")`)
- A table section for business records such as tickets, contacts, deals or timesheets: use the [Base blocks](https://web.dev.reui.io/blocks/data-grid/base.md)
- Only the record detail panel that slides over a list, without the console page: use the [Sheet blocks](https://web.dev.reui.io/blocks/application/sheet.md)

### Agent notes

- Every block pins now to Sep 29, 2026 14:20 UTC in `REFERENCE_MS`, set from `REFERENCE_DATE` in the audit log, and never reads the wall clock; pass your own now
- Writes only update client state and answer with a sonner `toast`; no block calls a server, so add your API at each write point
- Both page.tsx and each root set `min-h-svh`, and the root caps width at 1320px with its own padding; drop both inside an app shell

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