# Stale Jobs

## Preventing Stale Jobs

### Overview

The **Stale Jobs** feature in 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

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](/files/MnX0spUq86QKsYUvkL6V)
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**\
     ![Backup Tab](/files/CGcapxI6cX5Ot5qY4PZd)
   * **Restore Jobs**\
     ![Restore Tab](/files/KNh7kmDmhmG40WZyVbLz)
   * **Replicate Jobs**\
     ![Replicate Tab](/files/s8U3DXlJTQWzoYuXeAfb)
   * **Archive Jobs**\
     ![Archive Tab](/files/aJUSee8A7cQfjArm3HlS)

***

### 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](/files/JW60jeVrE6SHwZr90DHV)

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


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
