> For the complete documentation index, see [llms.txt](https://docs.joobq.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.joobq.io/core.md).

# Core Concepts

Understand what a job becomes between enqueueing and completion.

A **job** is a serializable unit of work. A **queue** holds jobs for a configured job type. **Workers** claim work from that queue and run `perform`. Redis stores queued and processing payloads; the worker applies the result through JoobQ's processing APIs.

## The standard job lifecycle

```mermaid
stateDiagram-v2
  [*] --> Enqueued: enqueue
  [*] --> Scheduled: delay
  Scheduled --> Enqueued: due
  Enqueued --> Running: worker claims
  Running --> Completed: perform returns
  Running --> Retrying: exception with retry budget
  Retrying --> Enqueued: backoff elapsed
  Running --> Dead: retries exhausted
  Enqueued --> Expired: expiration reached
  Running --> Expired: expired work detected
  Dead --> Enqueued: eligible DLQ replay
  Completed --> [*]
```

These names follow `JoobQ::Job::Status`. **DLQ** names the dead-letter store, not a separate enum value. Retry and expiry handling also update Redis structures; the diagram is a conceptual lifecycle, not an audit stream of every internal write. A running side effect cannot be undone just by changing its job status.

## Choose the right guide

* [Queues and workers](/core/queues-workers.md): registration, capacity, and process ownership.
* [Retries and dead letters](/core/retries-dlq.md): retry budget, backoff, and safe replay.
* [Scheduling](/core/scheduling.md): delayed jobs and recurring work.
* [Delivery](/core/delivery.md): a separate, opt-in leased API with receipts.

Use [Pro workflows](/pro/workflows.md) when the unit of work is a graph of dependent activities rather than one `perform` call. The same idempotency rules still apply.


---

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.joobq.io/core.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
