Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/broadway_cloud_pub_sub/pull/producer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ defmodule BroadwayCloudPubSub.Pull.Producer do
You can use the `:on_success` and `:on_failure` options to control how
messages are acknowledged with the Pub/Sub system.

By default successful messages are acknowledged and failed messages are ignored
(`:noop`). You can set `:on_success` and `:on_failure` when starting this producer,
or change them for each message through `Broadway.Message.configure_ack/2`.
By default successful messages are acknowledged and failed messages are nacked
with `{:nack, 0}`, which makes them immediately available for redelivery. You can
set `:on_success` and `:on_failure` when starting this producer, or change them for
each message through `Broadway.Message.configure_ack/2`.

The following values are supported by both `:on_success` and `:on_failure`:

Expand Down