# Run Python Agent Queues on PostgreSQL with PgQueuer

> Use PgQueuer to run Python agent background jobs from PostgreSQL with transactional enqueue, SKIP LOCKED concurrency, LISTEN/NOTIFY dispatch, recurring schedules, metrics, and a dashboard.

- Skill: `agentskillexchange/run-python-agent-queues-on-postgresql-with-pgqueuer` (Agent Skill)
- Install (CLI): `npx get-skill add agentskillexchange/run-python-agent-queues-on-postgresql-with-pgqueuer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/run-python-agent-queues-on-postgresql-with-pgqueuer/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-11-12
- Page: https://skillmd.com/skills/agentskillexchange/run-python-agent-queues-on-postgresql-with-pgqueuer

---


# Run Python Agent Queues on PostgreSQL with PgQueuer

Use PgQueuer to run Python agent background jobs from PostgreSQL with transactional enqueue, SKIP LOCKED concurrency, LISTEN/NOTIFY dispatch, recurring schedules, metrics, and a dashboard.

## Prerequisites

Python 3.10 or newer, PostgreSQL 13 or newer, pgqueuer package, asyncpg-compatible database connection

## Installation

Install or set up from the source-backed instructions:

Install with pip install pgqueuer, then run pgq install to create the database objects. Define PgQueuer entrypoint consumers and run them with pgq run module:function.

- Source: https://github.com/janbjorge/pgqueuer

## Documentation

- https://janbjorge.github.io/pgqueuer/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/run-python-agent-queues-postgresql-pgqueuer/)

