Skip to main content

jobs

jobs — ɳSelf documentation.

Jobs Plugin

Background job queue with BullMQ-style dispatch and a built-in dashboard. Free: MIT licensed.

Install

nself plugin install jobs

What It Does

Provides a Redis-backed job queue for background processing. Supports priority queues, delayed jobs, retries with exponential backoff, and job deduplication. Includes a web dashboard for monitoring queue depth and job status.

Dependencies

Requires Redis (REDIS_ENABLED=true in your .env).

Configuration

Env VarDefaultDescription
JOBS_PORT3105Jobs service port
JOBS_CONCURRENCY5Workers per queue
JOBS_MAX_RETRIES3Max retry attempts
JOBS_RETRY_DELAY60Seconds between retries

Ports

PortPurpose
3105Jobs service REST API and dashboard

Database Tables

2 tables added to your Postgres database:

  • np_jobs_definitions: registered job types
  • np_jobs_history: completed/failed job records

Nginx Routes

RouteTarget
/jobs-dashboard/Job queue dashboard UI

API

GET  /health: Health check
POST /jobs: Enqueue a job
GET  /jobs/{id}: Get job status
DELETE /jobs/{id}: Cancel a job
GET  /queues: List queues and depths