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.

agentskillexchange Updated 61 repo stars

File contents

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.

Documentation

Source

agentskillexchange/skills commit 5166d478e4

Frequently asked questions

npx get-skill add agentskillexchange/run-python-agent-queues-on-postgresql-with-pgqueuer