> For the complete documentation index, see [llms.txt](https://docs.tagshelf.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tagshelf.dev/event-api/jobevents/job-exceeded-retries.md).

# JobExceededRetriesEvent

## Usage

This event triggers when a job has attempted to execute its current stage in the and failed to move to the next stage exceeding the maximum number of allowed retries. Some common scenarios when this event triggers are:

* OCR failure on low-quality scans.
* Repeated extraction errors due to malformed document structure.&#x20;

## JSON Payload

```json
{
  "event_id": "(UUID format) - Unique identifier for the event.",
  "event_type": "Describes the type of event that occurred.",
  "event_time": "(floating-point numeric timestamp) - Unix timestamp representing the time when the event occurred, rounded to whole seconds.",
  "event": {
    "event_name": "Name of the specific event.",
    "event_type": "Type of the event, often matching or related to the outer event_type.",
    "job_id": "(UUID format) - Unique identifier for the job being retried.",
    "user_name": "Username of the individual who is associated with the job retry.",
    "merge": "Boolean - Indicates whether the job involves merging files or similar operations.",
    "metadata": "Text - Descriptive information or summary about the job, focusing on its urgency or importance, such as 'end-of-quarter reporting'.",
    "file_count": "Integer - The number of files involved in the job.",
    "retries": "Integer - The number of times the job has been retried.",
    "exceeded_retries": "Boolean - Indicates whether the job retries have exceeded the set limit, possibly triggering an error or special handling.",
    "error_messages": "Array of Strings - List of error messages encountered during previous attempts to complete the job, providing insight into issues affecting the job.",
    "company_id": "(UUID format) - Unique identifier for the company associated with the job.",
    "company_name": "Name of the company associated with the job.",
    "file_urls": "Array of URLs - List of fully qualified URLs where the associated files are stored, accessible via HTTP or HTTPS.",
    "creation_date": "(ISO 8601 date format) - Date and time when the job was initially created.",
    "update_date": "(ISO 8601 date format) - Date and time when the job or event details were last updated."
  }
}
```

```json
{
  "event_id": "d1e2f3g4-h5i6-j7k8-l9m0-n1o2p3q4r5s6",
  "event_type": "job_event_type",
  "event_time": "1653038700.00",
  "event": {
    "event_name": "job_retry_event",
    "event_type": "job_event_type",
    "job_id": "23456789-2345-2345-2345-234567890bcd",
    "user_name": "jane_doe",
    "merge": "true",
    "metadata": "High-priority job for end-of-quarter reporting",
    "file_count": "200",
    "retries": "5",
    "exceeded_retries": "true",
    "error_messages": [
      "Timeout during processing",
      "Service unavailable error"
    ],
    "company_id": "98765432-4321-4321-4321-432143214322",
    "company_name": "Future Tech Ltd",
    "file_urls": [
      "https://example.com/files/quarter_report1.pdf",
      "https://example.com/files/quarter_report2.pdf"
      // Additional URLs can be included as needed
    ],
    "creation_date": "2023-05-20T13:00:00Z",
    "update_date": "2023-05-20T14:35:00Z"
  }
}

```


---

# 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 dynamically by asking a question.

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

```
GET https://docs.tagshelf.dev/event-api/jobevents/job-exceeded-retries.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
