A production-ready job queue implementation leveraging PostgreSQL for priority scheduling, batch claiming, and detailed progress tracking without external message brokers.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install postgres-job-queue
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install postgres-job-queue using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The PostgreSQL Job Queue skill provides a robust architectural pattern for managing background tasks using existing database infrastructure. By utilizing advanced SQL features like FOR UPDATE SKIP LOCKED and partial indexing, this Openclaw Skills resource allows developers to build reliable, high-concurrency task queues. This approach eliminates the operational complexity of managing external dependencies like Redis or RabbitMQ while maintaining strict data integrity and visibility into job lifecycles.
CREATE TABLE jobs (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
job_type VARCHAR(50) NOT NULL,
priority INT NOT NULL DEFAULT 100,
status VARCHAR(20) NOT NULL DEFAULT 'pending',
data JSONB NOT NULL DEFAULT '{}',
progress INT DEFAULT 0,
worker_id VARCHAR(100),
claimed_at TIMESTAMPTZ,
created_at TIMESTAMPTZ DEFAULT NOW(),
attempts INT DEFAULT 0,
max_attempts INT DEFAULT 3,
CONSTRAINT valid_status CHECK (status IN ('pending', 'claimed', 'running', 'completed', 'failed', 'cancelled'))
);
CREATE INDEX idx_jobs_claimable ON jobs (priority DESC, created_at ASC) WHERE status = 'pending';
claim_job_batch function provided in the Openclaw Skills documentation to enable safe concurrent worker access.The skill organizes its data within a single relational table optimized for fast state transitions. The schema follows this taxonomy:
| Attribute | Description |
|---|---|
job_type |
Categorizes tasks so workers can subscribe to specific job classes. |
priority |
Integer used for weighted scheduling; higher values are processed first. |
status |
ENUM-like check constraint tracking the lifecycle from pending to completed. |
data |
JSONB column for storing arbitrary task parameters and context. |
worker_id |
Identifier for the specific instance currently processing the job. |
Loading
A comprehensive tool for generating detailed Uniswap portfolio reports including PnL, fees, and multi-chain position analysis.

A framework that uses persistent markdown files as external disk memory to help AI agents manage complex tasks and overcome context window limitations.

A specialized tool for generating comprehensive user persona documentation and journey maps to anchor product development in real-world user needs.

An AI-driven liquidity strategy engine that provides optimal Uniswap V2, V3, or V4 parameters for any token pair.

A meta-skill that orchestrates specialized agents to audit logging, security, performance, and deployment for guaranteed service stability.

A specialized communication framework for technical teams to draft clear, actionable emails, messages, and meeting agendas.








































