> ## Documentation Index
> Fetch the complete documentation index at: https://cockroachlabs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Jobs Page

export const InternalLink = ({version, path = "", children, ...props}) => {
  let detectedVersion = version || "stable";
  if (typeof window !== 'undefined' && !version) {
    const match = window.location.pathname.match(/\/docs\/([^/]+)/);
    if (match) {
      detectedVersion = match[1];
    }
  }
  const normalizedPath = path.startsWith("/") ? path.slice(1) : path;
  return <a href={`/docs/${detectedVersion}/${normalizedPath}`} {...props}>
      {children}
    </a>;
};

The **Jobs** page of the CockroachDB Cloud Console provides details of all jobs in the cluster.

Viewing jobs requires the <InternalLink path="authorization#cluster-monitor">Cluster Monitor</InternalLink>, <InternalLink path="authorization#cluster-operator">Cluster Operator</InternalLink>, or <InternalLink path="authorization#cluster-admin">Cluster Admin</InternalLink> role. To view this page, select a cluster from the <InternalLink path="cluster-management#view-clusters-page">**Clusters** page</InternalLink>, and click **Jobs** in the **Monitoring** section of the left side navigation.

By default, jobs are deleted every 14 days. You can change this interval using the `jobs.retention_time` <InternalLink version="stable" path="cluster-settings">cluster setting</InternalLink>.

The Jobs list is designed for you to manage pending work. It is not intended to display the canonical record of all jobs that have run. If you need a historical record of all jobs you have run, you should log this information externally.

## Jobs table

Use the **Jobs** table to see recently created and completed jobs.

<img src="https://mintcdn.com/cockroachlabs/Kk1KHInC1z_swl-c/images/v25.4/ui-jobs-page.png?fit=max&auto=format&n=Kk1KHInC1z_swl-c&q=85&s=0da4d117b883d63131a8a7f541e2820c" alt="DB Console Jobs Page" width="2528" height="1292" data-path="images/v25.4/ui-jobs-page.png" />

### Filter jobs

Use the controls to filter jobs:

* **Status**: filter jobs by [job status](#job-status).
* **Type**: filter jobs by type. <InternalLink version="stable" path="cost-based-optimizer#table-statistics">Automatic table statistics</InternalLink> jobs are not displayed even when the **Type** menu is set to **All**. To view these jobs, set **Type** to **Auto-Statistics Creation**.
* **Show**: toggle between showing the latest 50 jobs or all jobs.

The status line after the filters shows the number of jobs displayed and a message indicating the oldest time (in UTC) that jobs are shown for. The oldest time is calculated as `now -` the duration of the `jobs.retention_time` <InternalLink version="stable" path="cluster-settings">cluster setting</InternalLink>, set to 28 days by default.

The table is paginated with 20 jobs per page. Click the page controls following the table to traverse pages.

The following columns are available for each job. Click **Columns** to select the columns to display in the table.

| Column                   | Description                                                                                                                                                                                                                                                        |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Description              | SQL statement that created the job.                                                                                                                                                                                                                                |
| Status                   | Current [job status](#job-status) or completion progress.                                                                                                                                                                                                          |
| Job ID                   | Unique job ID. This value is used to <InternalLink version="stable" path="pause-job">pause</InternalLink>, <InternalLink version="stable" path="resume-job">resume</InternalLink>, or <InternalLink version="stable" path="cancel-job">cancel</InternalLink> jobs. |
| User Name                | User that created the job.                                                                                                                                                                                                                                         |
| Creation Time (UTC)      | Date and time the job was created.                                                                                                                                                                                                                                 |
| Last Modified Time (UTC) | Date and time the job was last modified.                                                                                                                                                                                                                           |
| Completed Time (UTC)     | Date and time the job was completed.                                                                                                                                                                                                                               |

To view [job details](#job-details), click the job description.

### Job status

| Status             | Description                                                                                                                               |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `PENDING`          | Job is created but has not started running.                                                                                               |
| `PAUSED`           | Job is <InternalLink version="stable" path="pause-job">paused</InternalLink>.                                                             |
| `PAUSE-REQUESTED`  | A request has been issued to pause the job. The status will move to `PAUSED` when the node running the job registers the request.         |
| `FAILED`           | Job failed to complete.                                                                                                                   |
| `SUCCEEDED`        | Job successfully completed.                                                                                                               |
| `CANCELED`         | Job was <InternalLink version="stable" path="cancel-job">canceled</InternalLink>.                                                         |
| `CANCEL-REQUESTED` | A request has been issued to cancel the job. The status will move to `CANCELED` when the node running the job registers the request.      |
| `RUNNING`          | Job is running. A job that is running will be displayed with its percent completion and time remaining, rather than the `RUNNING` status. |
| `REVERTING`        | Job failed or was canceled and its changes are being reverted.                                                                            |
| `REVERT-FAILED`    | Job encountered a non-retryable error when reverting the changes. It is necessary to manually clean up a job with this status.            |
| `RETRYING`         | Job is retrying another job that failed.                                                                                                  |

## Job details

The details show:

* **Job ID**
* **Status**
* **Creation Time**
* **Last Modified Time**
* **Completed Time**
* **Last Execution Time**
* **Execution Count**
* **User Name**
* error messages (if any)

  <img src="https://mintcdn.com/cockroachlabs/Kk1KHInC1z_swl-c/images/v25.4/ui_jobs_page_details.png?fit=max&auto=format&n=Kk1KHInC1z_swl-c&q=85&s=b1f91c2d6ed1311a8ac2ad4fb5791877" alt="DB Console Jobs Page" width="2870" height="894" data-path="images/v25.4/ui_jobs_page_details.png" />

## See also

* <InternalLink version="stable" path="show-jobs">`SHOW JOBS`</InternalLink>
* <InternalLink version="stable" path="troubleshooting-overview">Troubleshooting Overview</InternalLink>
* <InternalLink version="stable" path="support-resources">Support Resources</InternalLink>
* <InternalLink version="stable" path="monitoring-and-alerting#raw-status-endpoints">Raw Status Endpoints</InternalLink>
