# Stopped job alert

**T**he StoppedJobAlert feature is used to receive notifications about "stopped jobs" and "jobs yet to start" at scheduled intervals. It checks the job's next run time and compares it with the current time. If the next run time is past due, it will notify the relevant stakeholders. The feature also checks the job run detail table for entries where the job start time is present but the end time is not updated. If the elapsed time since the job batch's start time is more than 60 minutes, it sends an email notification to the relevant stakeholders.

## <mark style="color:blue;">Architecture</mark>

<figure><img src="https://3732705674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaQ7wCJOT0ZaejHUiD6sb%2Fuploads%2FvnQniK5i51ltYeqAyqib%2FMicrosoftTeams-image%20(12).png?alt=media&#x26;token=1799e38e-5712-4208-8265-b5f510730ddc" alt=""><figcaption></figcaption></figure>

## <mark style="color:blue;">**Prerequisites**</mark>

* For checking the stop jobs, In Client settings, it  should be mentioned as a “STOPPED\_JOB\_EMAIL\_ENABLED” Key and the Value should be “YES”.
* It should be given an entry for a Key as  “STOPPED\_JOB\_IDS\_FOR\_MAIL” and the value  for it will be the respective jobId’s
* In ClientSettings, add the respective stakeholders email details like from email, to email, subject,etc…
* In the clientSettings, add the respective stopped Job notification email template.


---

# 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://oresund-integration-platform.gitbook.io/oresund-integration-platform/about/product-and-developer-guide/monitoring-helper-service/scheduled-automated-monitoring/stopped-job-alert.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.
