Guides

Task-focused pages for shaping workflows, handling failure, timing and load, data and lifecycle, and extending Queuert.

Shape workflows

Chain patterns

Build linear, branched, loop and go-to chains with continueWith.

Job blockers

Make a job wait for other chains to complete, and read their outputs when it runs.

Batched processors

Process many jobs of one type in one handler call, settling them together or each on its own.

Feature slices

Organize job types and processors into independent feature modules.

Handle failure

Error handling

Return errors as typed job outputs, compensate for failed steps and reschedule jobs.

Timeouts

Bound an attempt with a cooperative timeout, and know what the worker lease does and does not limit.

Health

Define when jobs are failing and chains are overdue, for the list and count filters, the dashboard and state metrics.

Timing and load

Scheduling

Start a chain later, reschedule a job from or outside its handler, and run recurring jobs.

Deduplication

Keep a repeated trigger from creating the same chain twice, using deduplication keys.

Prioritization

Reserve worker capacity for urgent workloads by splitting job types across workers.

Horizontal scaling

Run several workers against the same database.

Data and lifecycle

Awaiting chains

Wait for one chain or several to complete, with polling and notifications.

Workerless outcomes

Decide a job's outcome outside a worker, from an API endpoint, webhook or approval step.

Job, chain and worker queries

Inspect jobs, chains and workers with read-only queries.

Chain deletion

Delete chains safely, with checks for chains that still block other chains.

Cleanup

Delete completed chains automatically with a recurring cleanup job.

State metrics

Export the state of the job table as OpenTelemetry gauges from a periodic snapshot job.

Extend

Job attempt middleware

Wrap attempt handler calls with cross-cutting logic such as tracing, resource injection, audit and contextual logging.

Tx hooks

Run side effects only after your database transaction commits.

Application migrations

Run your application's own schema migrations with the migrator from @queuert/postgres, @queuert/sqlite or @queuert/mysql.

esc

Search guides, integrations and every exported symbol.

↑ ↓ to navigate↵ to open