https://github.com/pgq/pgq-ext
Remote queue position tracking for PgQ consumers
https://github.com/pgq/pgq-ext
Last synced: 5 months ago
JSON representation
Remote queue position tracking for PgQ consumers
- Host: GitHub
- URL: https://github.com/pgq/pgq-ext
- Owner: pgq
- Created: 2016-06-12T10:33:56.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-26T19:57:42.000Z (about 2 years ago)
- Last Synced: 2026-01-17T03:38:47.418Z (5 months ago)
- Language: PLpgSQL
- Size: 37.1 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Track processed batches and events in target DB
================================================
Batch tracking is OK.
Event tracking is OK if consumer does not use retry queue.
Batch tracking
--------------
is_batch_done(consumer, batch)
returns:
true - batch is done already
false - batch is not done yet
set_batch_done(consumer, batch)
returns:
true - tagging successful, batch was not done yet
false - batch was done already
Event tracking
--------------
is_batch_done(consumer, batch, event)
returns:
true - event is done
false - event is not done yet
set_batch_done(consumer, batch, event)
returns:
true - tagging was successful, event was not done
false - event is done already