> For the complete documentation index, see [llms.txt](https://allqueue.gitbook.io/allq/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://allqueue.gitbook.io/allq/foundation-concepts/jobs.md).

# Jobs

A **"job"** is an atomic unit of work that is put into a tube.&#x20;

Generally, a job consists of a chunk of JSON text that is put into the tube

When adding a job to a tube, you need to set a TTL (Time To Live) on a job, which indicates how long a consumer has to process a job.

When a job is **reserved** from a tube it is temporarily removed from the tube, and the process reserving the job has a certain amount of time (TTL) to process that job, otherwise the job is automatically put back into the tube.

#### Jobs can have the following actions performed on them

* **Delete** (remove from tube)
* **Touch** (reset TTL, allows the job to be reserved for longer than TTL)
* **Bury** (put job in "buried" state, aka dead letter queue)
* **Release** (release job back into tube)


---

# 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:

```
GET https://allqueue.gitbook.io/allq/foundation-concepts/jobs.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.
