# Job Runs

Every job has **one detail page**, whatever its trigger kind, and every trigger creates a **run** record on it.

The header carries the job's title, its state — a run-status badge on a manual job, or an **Enabled** / **Disabled** badge on a cron or push job — and its trigger badge, followed on a cron job by its schedule in words. Below it sit the agent's name and the relevant timestamps.

A **model badge** sits between the agent's name and the timestamps, but only on a **manual** job, and only when that job pins a model. A manual job that inherits its agent's default model shows no badge, and a cron or push job never shows one — so the absence of a badge is not the absence of a model.

The page also shows the job's **instructions** — the text the agent is actually given. Every trigger kind now reads the job's prompt first and falls back to its description only when there is no prompt, so a cron or push job created over REST shows what it will run rather than repeating its own title.

Under the header, a manual job shows the outcome of its latest run as a card:

| Card | When it appears | What it holds |
|------|-----------------|---------------|
| **Result** | The latest run completed, **or was cancelled** and produced something | The agent's answer, rendered as Markdown. |
| **Error** | The latest run failed | The error message the run ended with. |

A cancelled run keeps its Result card because stopping a goal partway through is a normal way to end one, and the rounds it did complete are still worth reading.

Every job then has a **Runs** list, one row per run and no column headings: each row shows the run's status first, then how long ago it started (hover for the exact time) and how long it took.

Select a run to open its detail panel, which has three tabs — and picks the right one for you: a **failed** run opens on **Steps**, where the reason usually is.

| Tab | What it holds |
| --- | ------------- |
| **Output** | What the run produced. |
| **Steps** | The tool-call transcript — which tools ran, in what order, each call's **Args** and its **Result** or **Error**, and how long each took against wall clock. |
| **Input** | What the run received: for a push run, the event payload. |

A cron run's output no longer appears in your chat with the agent. Like a push run, each cron run works in a thread of its own, and what it produced is on that run's **Output** tab.

**Steps is persisted, not reconstructed.** A run that threw still keeps the transcript of everything it did before it failed, which is what makes a partial run diagnosable. The tab distinguishes its two empty cases rather than showing one blank panel: *This run recorded no steps.* means the run genuinely did no tool work, while *No transcript recorded* means the run predates transcripts or ended before it began work.

The list pages in more runs as you scroll, and reads *None yet.* until the job has fired for the first time.

Each run ends in one of these statuses:

| Status | Meaning |
|--------|---------|
| **Pending** | The run is queued and waiting to start. |
| **Running** | The agent is currently running. |
| **Completed** | The agent finished successfully. |
| **Failed** | The agent encountered an error. |
| **Cancelled** | An in-flight run was stopped. |
| **Filtered** | The event did not pass the filter expression and was skipped. |
| **Rate limited** | The run was skipped because the job or organization hit its rate limit. On the Inbox mailbox watch for Gmail (**Inbox · Gmail**) it can also mean the run finished but Gmail rate-limited part of its work; those messages are tried again on a later delivery. |

Filtered and rate-limited events still create a run row, so nothing that fired is invisible.

## Files a run leaves behind

A run of an organization agent's job works in a folder of its own on one of your organization's [shared sandboxes](/insulin/getting-started/settings/#ai-sandbox-organization). That folder is scratch space for the run: the next run may land on a different sandbox, so a job should not count on finding the previous run's files there. Anything runs need to share belongs in the organization's **Drive**, which every member can read in the **Files** app.

## When a run finishes

If your organization has connected [Slack](/integrations/slack/), Fours sends you a direct message in Slack when a run of a job you own finishes — one you started yourself, or one on a schedule — with its result or error and an **Open in Fours Insulin console** link back to the job. It finds you by your Fours account's email in that Slack workspace, and only while you are still a member of the organization; if the email has no match there, no message is sent. Jobs that run on incoming events, goal jobs, and jobs owned by a channel don't send one. See [When a job run finishes](/insulin/slack-bot/approvals-and-jobs/#when-a-job-run-finishes).

## Rate limits

To keep automations from overwhelming your workspace, **runs that Insulin starts for you** — a cron tick, or an arriving push event — are rate limited:

| Limit | Value |
|-------|-------|
| Per job | 60 runs per hour |
| Per organization | 300 runs per hour |

Limits apply over a rolling one-hour window and are fixed — there is no setting for them. A run that exceeds one is recorded with the **Rate limited** status rather than executing.

**Only one manual path skips the limit.** Running a *manual* job — the **Run** button, or the REST run endpoint — goes straight to execution. **Run now** on a cron or push job does not: it replays the job through the same path a real tick or event takes, so it is filtered and rate limited exactly like an automatic run, and can be recorded as **Rate limited**. What **Run now** does bypass is the enabled check, which is why it works on a switched-off job. Either way the job's in-flight rule still applies: one run at a time. The REST run endpoint accepts manual jobs only — call it on a cron or push job and it answers `400`, naming the trigger endpoint to use instead.

*Diagram: Push events, cron ticks and Run now all pass the filter and the hourly limits before the agent runs; only a manual job goes straight to execution.*

- A push event arrives, or the cron schedule fires → Filter expression passes?
- Filter expression passes? → Run recorded as Filtered: no
- Filter expression passes? → Under the per-job and per-org hourly limits?: yes
- Under the per-job and per-org hourly limits? → Run recorded as Rate limited: no
- Under the per-job and per-org hourly limits? → The agent runs: yes
- You run a manual job ((Run, or the REST run endpoint)) → The agent runs: not rate limited
- You press Run now on a cron or push job → Filter expression passes?: replays the trigger

## Managing Jobs

Open a job from the list to reach its detail page. The action buttons in the header are icons; hover one for its label. Which buttons appear depends on the trigger kind.

**A manual job:**

- **Run** — Start the job. Offered only while the job is pending; a job allows at most one in-flight run at a time, so if a run is already active a second Run is rejected with "Job already has an in-flight run."
- **Terminate** — Stop a run that is currently going. While a run is in flight the header also shows a spinning **Running** indicator.
- **Delete** — Permanently remove the job and its run history. You are asked to confirm by name.

**A cron or push job:**

- **Run now** — Fire the job immediately; a run is created as if its schedule or event had arrived. This works even while the job is switched off, so you can test a paused automation. (The REST trigger endpoint and the assistant also accept an optional payload to exercise the filter against sample data; the in-app **Run now** button fires with an empty payload.)
- **Enable / Disable** — A switch that pauses the job without deleting it. A disabled job never fires on its schedule and shows a **Disabled** badge instead of **Enabled**.
- **Delete** — Permanently remove the job and its run history. You are asked to confirm by name.

:::info
There is no edit form in the Jobs app. To change a job's name, schedule, filter, or assigned agent, ask the assistant (it uses an `update_job` action) or send a `PATCH` request to the REST API.
:::
