Broadway acknowledger that completes PgQue batches and routes retries/DLQ events.
Acknowledgement Semantics
- Success: When messages are processed successfully, the entire batch is closed
via
pgque.ack(batch_id). - Failure Options:
{:snooze, seconds}or{:retry, seconds}- event is scheduled for retry viapgque.event_retry/4.{:dead, reason}or{:cancel, reason}- event is immediately moved to DLQ viapgque.event_dead/4.- Other failure reason - routes according to
:on_failureconfiguration (:deador:retry), using:default_retry_delayif retrying.
Summary
Functions
Decrements the batch's atomic in-flight message counter and returns true
when all messages from the PgQue batch have finished processing.
Notifies the originating producer process that the active batch has been acknowledged.
Functions
@spec finish_batch?(map(), pos_integer()) :: boolean()
Decrements the batch's atomic in-flight message counter and returns true
when all messages from the PgQue batch have finished processing.
Notifies the originating producer process that the active batch has been acknowledged.