@10x-media/jobs
v0.1.0-beta.12
Published
Jobs ops dashboard, execution helpers, and reliability tooling for Payload
Readme

@10x-media/jobs
An ops dashboard plus reliability, worker, and queue-control layers for Payload v3's built-in jobs queue. See what the queue is doing, recover jobs that die mid-run, run a proper worker process with graceful drain, and pause or drive the queue from the outside. Every layer is opt-in.
Part of the @10x-media Payload plugins collection. In beta: published under the beta dist-tag until a stable 1.0.
Features
- Dashboard: a derived Status column, a queue-health bar, and error/log panels on the
payload-jobscollection. On by default. - Custom log blocks: register your own renderer for an attempt's
input,output, orerror, per task slug or for every task. - Create-form input:
inputis pre-filled from the selected task's or workflow'sinputSchema, andinput.componentsswaps the JSON editor for your own per slug. - Reliability: job leases, an orphan sweeper with dead-lettering, leader election with fence tokens, serverless staleness.
- Workers:
createWorkerruns jobs as a standalone process and drains gracefully on SIGTERM. - Queue control: cluster-wide pause/resume plus hardened
queue-run,queue-sweep, andqueue-statusendpoints with access guards. - Topology presets for serverless (Vercel Cron), single-node, and multi-node deployments.
- Typed translations with per-key overrides via
@10x-media/jobs/i18n.
Quick start
pnpm add @10x-media/jobs// payload.config.ts
import { buildConfig } from 'payload'
import { jobs, singleNodePreset } from '@10x-media/jobs'
export default buildConfig({
jobs: {
tasks: [/* at least one task; payload-jobs does not exist without one */],
},
plugins: [jobs({ ...singleNodePreset() })],
})jobs({}) alone enables the dashboard; the preset also turns on reliability and queue control. Run a worker process for production execution.
Documentation
Full documentation at docs.10xmedia.de:
License
MIT. Copyright 10x Media GmbH.
