feat(queue-postgres): add a PostgreSQL queue adapter #53
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core!53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/queue-postgres"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
New package
@quatrain/queue-postgres: durable tasks stored in a table, without a broker.FOR UPDATE SKIP LOCKED: several workers can listen on one topic without processing a task twice concurrently.retryTaskfor failed tasks,requeueStalefor tasks abandoned by a stopped worker. Delivery is at least once: handlers must be idempotent.close()wait for the tasks being processed.sql/queue_messages.sql);ensureSchema: falseleaves it to the application's migrations.Checks
Integration tests need a database (
QUEUE_POSTGRES_TEST_URL) and are skipped without one, so the CI of this pull request does not run them unless that variable is set. They ran locally before the rebase onto the currentdevelop.Closes #52
🤖 Generated with Claude Code