# JobFailedEvent

## Usage

This event triggers when a job cannot proceed through its workflow, halting at a particular stage. Some reasons for this event triggering are the following:

* Incomplete document data preventing classification.
* Unrecoverable errors during extraction.

## JSON Payload

```json5
{
  "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.",
    "company_id": "(UUID format) - Unique identifier for the company associated with the event.",
    "company_name": "Name of the company involved in the event.",
    "job_id": "(UUID format) - Unique identifier for the job that has failed.",
    "retries": "Integer - The number of attempts made to complete the job successfully.",
    "exceeded_retries": "Boolean - Indicates whether the number of attempts has surpassed the allowed threshold, which in this case is 'false', meaning more attempts might be possible.",
    "error_messages": "Array of Strings - List of error messages explaining the reasons for the job's failure, such as connectivity issues and timeouts, which help in troubleshooting.",
    "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": "f3g4h5i6-j7k8-l9m0-n1o2-p3q4r5s6t7u8",
  "event_type": "job_event_type",
  "event_time": "1653139800.00",
  "event": {
    "event_name": "job_failed_event",
    "event_type": "job_event_type",
    "company_id": "34567890-4567-4567-4567-4567890123ef",
    "company_name": "Innovative Solutions",
    "job_id": "45678901-5678-5678-5678-5678901234fg",
    "retries": "3",
    "exceeded_retries": "false",
    "error_messages": [
      "Network connectivity issues",
      "Database timeout error"
    ],
    "creation_date": "2023-05-21T15:20:00Z",
    "update_date": "2023-05-21T16:40:00Z"
  }
}

```


---

# 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.tagshelf.dev/event-api/jobevents/job-failed.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.
