# Timeouts

It is possible to define a timeout for the workers so that if the job takes more time than the one specified in this option, the http call to the endpoint will be aborted.

The worker will merely request to abort the call, and it will be the endpoint's responsibility to actually gracefully abort whatever operation it may be doing. The job itself will be marked as failed with "failedReason":  ...


---

# 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.bullmq.net/http-api/workers/adding-workers/timeouts.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.
