Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/content/docs/queues/configuration/batching-retries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ Messages can be delayed by default at the queue level, or per-message (or batch)

You can apply a backoff algorithm to increasingly delay messages based on the current number of attempts to deliver the message.

Each message delivered to a consumer includes an `attempts` property that tracks the number of delivery attempts made.
Each message delivered to a consumer includes an `attempts` property that tracks the number of delivery attempts made (including the current attempt).

For example, to generate an [exponential backoff](https://en.wikipedia.org/wiki/Exponential_backoff) for a message, you can create a helper function that calculates this for you:

Expand Down Expand Up @@ -379,4 +379,4 @@ class Default(WorkerEntrypoint):

- Review the [JavaScript API](/queues/configuration/javascript-apis/) documentation for Queues.
- Learn more about [How Queues Works](/queues/reference/how-queues-works/).
- Understand the [metrics available](/queues/observability/metrics/) for your queues, including backlog and delayed message counts.
- Understand the [metrics available](/queues/observability/metrics/) for your queues, including backlog and delayed message counts.