1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
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
Fastvacuum
----------
pgq.ext.completed_batch
pgq.ext.completed_event
pgq.ext.completed_tick
pgq.ext.partial_batch
|