pg-boss

Implement PostgreSQL-based job queues with PG Boss for Node.js/TypeScript projects.

1|2|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/blink-new/claude --skill pg-boss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pg-boss
Source: https://github.com/blink-new/claude/tree/main/skills/pg-boss
Command: npx skills add https://github.com/blink-new/claude --skill pg-boss

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust and reliable way to implement background job processing, scheduled tasks, and cron-like functionality in Node.js applications using PostgreSQL as the backing store.

Core Features & Use Cases

  • Background Jobs: Queue and process tasks asynchronously, decoupling them from the main application flow.
  • Scheduled Tasks: Implement cron-like scheduling for recurring jobs.
  • Reliability: Ensures jobs are not lost even if the application crashes, with built-in retry mechanisms.
  • Use Case: Sending out daily email digests to users, processing uploaded images, or running nightly data aggregation tasks.

Quick Start

Use the pg-boss skill to start a new PG Boss instance with your database connection string.

Frequently Asked Questions about pg-boss

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement reliable background jobs in Node.js using PostgreSQL?

You can implement reliable background jobs in Node.js by using PostgreSQL as the backing store to queue and process tasks asynchronously, decoupling them from the main application flow. This ensures jobs are not lost even if the application crashes.

Can I schedule cron-like recurring tasks with a PostgreSQL-backed queue?

Yes, you can schedule cron-like recurring tasks with a PostgreSQL-backed queue. This allows you to implement scheduled jobs for recurring tasks like sending daily email digests or running nightly data aggregation.

What is the best way to handle batch processing and singleton queues in Node.js?

The best way to handle batch processing and singleton queues in Node.js is using a PostgreSQL-based job queue that supports common patterns like batch processing, singleton queues, and watchdog recovery for reliable task management.

Does PostgreSQL job queue support automatic task rollover and retry mechanisms?

Yes, PostgreSQL job queues support automatic task rollover and built-in retry mechanisms. This reliability feature ensures that scheduled tasks and background jobs are not lost during application crashes.

When do I need a PostgreSQL-based job queue instead of in-memory task scheduling?

You need a PostgreSQL-based job queue when your application requires reliable background processing, crash recovery, and scheduled tasks. It is essential for tasks like processing uploaded images or running nightly data aggregation without losing jobs.

How does watchdog recovery work for PostgreSQL background jobs?

Watchdog recovery for PostgreSQL background jobs works by automatically restoring and managing stuck or failed tasks. This ensures reliable job execution and prevents task loss during application crashes.