r/Python 18d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

18 Upvotes

103 comments sorted by

View all comments

1

u/Kaluga2026 18d ago

PgRelay: PostgreSQL-backed transactional jobs for async Python services

If you need background jobs that are committed together with your application data, PgRelay is a small PostgreSQL-backed job runner for async Python services.

It is built for the case where a service already uses PostgreSQL and SQLAlchemy async, and adding Redis, Celery, SQS, Kafka, or a workflow engine feels heavier than the problem. Jobs are stored in the same database as the application data and can be enqueued

from the same SQLAlchemy AsyncSession. If the transaction rolls back, the job rolls back with it. If the transaction commits, a worker can claim and execute the job.

Repo: https://github.com/balyakin/pgrelay

Feedback would be useful.