> For the complete documentation index, see [llms.txt](https://knowledgebase.autorabit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.autorabit.com/product-guides/vault/vault-features/reporting/stale-jobs.md).

# Stale Jobs

## Preventing Stale Jobs

### Overview

The **Stale Jobs** feature in AutoRABIT Vault enables administrators to monitor and manage jobs that have stalled during execution. Any job that remains inactive—i.e., without backend file updates—for **four consecutive days** is flagged as a *Stale Job*.

***

### Introduction

AutoRABIT Vault manages stale jobs using a two-pronged approach:

1. **Automated Cron Job**: Scheduled weekly to identify and terminate long-running inactive jobs.
2. **Stale Jobs Interface**: Allows admins to manually view, select, and terminate stale jobs.

Key behaviors:

* Admins can manually terminate one or more stale jobs.
* For a single job, a **termination notification** is sent to both the admin and the job creator.
* For multiple jobs, a **consolidated notification** is delivered.

***

### How to Access the Stale Jobs Module

1. **Select the target Org** from the list of available organizations.

   ![Select Org](https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FV4QdKpruqvyg3q7gSk3i%2Fimage.png?alt=media\&token=6bd48568-bedc-4b98-83b8-e8ddcf6cb0b1)
2. A list of jobs from various modules (Backup, Restore, Replicate, Archive) will be displayed for the selected Org.
3. Navigate between module tabs to review stale jobs in each category:
   * **Backup Jobs**<br>

     <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FBG6Jrq2kwn840G3q6fj8%2Fimage.png?alt=media&amp;token=d3b8d083-9437-48ff-9483-1281267b7a57" alt=""><figcaption></figcaption></figure>
   * **Restore Jobs**<br>

     <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FgPQRHDTblRV0wve3L3gs%2Fimage.png?alt=media&amp;token=9414e659-9390-43ae-81c2-4a6cc4215ab4" alt=""><figcaption></figcaption></figure>
   * **Replicate Jobs**<br>

     <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FARnvH9ExCYie8AV3RtgT%2Fimage.png?alt=media&amp;token=245fd9f2-005e-4c13-b9e4-a6c8b147ae72" alt=""><figcaption></figcaption></figure>
   * **Archive Jobs**<br>

     <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FTRyTuSDBfEmosnFgiUV7%2Fimage.png?alt=media&amp;token=129dc87f-fe9c-41bd-8715-85b29efef145" alt=""><figcaption></figcaption></figure>

***

### Terminating Stale Jobs

4. Select the jobs you wish to terminate and click **Terminate**.
5. **Notifications:**

   * **Single Job Termination**:
     * An email is sent from the relevant module.
     * The message includes a new field: `Terminate Reason`.
   * **Multiple Job Termination**:
     * A consolidated email lists all terminated jobs.

   ![Termination Notification](https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2Fnws3o9sQnxNSpVnYnoIV%2Fimage.png?alt=media\&token=859e6711-8886-412b-a466-7ffe4babb32c)

This feature ensures system hygiene and prevents inactive jobs from consuming unnecessary system resources.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://knowledgebase.autorabit.com/product-guides/vault/vault-features/reporting/stale-jobs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
