# Failed jobs monitor

This monitor checks if there are new jobs that have failed. The monitor will trigger an alert as soon as it detects that there is a job at the top of the failed jobs that have not triggered an alarm before.

{% hint style="danger" %}
For this monitor to work properly you need to keep at least 1 failed job in your queues with the removeOnFailed option set to false, which is the default, or to a number equal or larger than 1.
{% endhint %}

Since it is not uncommon that when one job fails several others fail too, the monitor will not trigger new alerts until the existing triggered alert is acknowledged.

{% hint style="info" %}
The alerts are triggered per queue, so you can have many alerts in the "triggered" status belonging to different queues.
{% endhint %}

![](/files/oZ7GOHc5bmf4Yan4YZC9)


---

# 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://docs.taskforce.sh/monitoring/failed-jobs-monitor.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.
