Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ When publishing messages to a queue, or when [marking a message or batch for ret

Delaying messages allows you to defer tasks until later, and/or respond to backpressure when consuming from a queue. For example, if an upstream API you are calling to returns a `HTTP 429: Too Many Requests`, you can delay messages to slow down how quickly you are consuming them before they are re-processed.

Messages can be delayed by up to 12 hours.
Messages can be delayed by up to 24 hours.

:::note

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@

* `--delivery-delay-secs` <Type text="number" /> <Type text="optional" />
* How long a published message is delayed for, before it is delivered to consumers.
* Must be between 0 and 43200 (12 hours).
* Must be between 0 and 86400 (24 hours).
* Defaults to 0.

* `--message-retention-period-secs` <Type text="number" /> <Type text="optional" />
* How long messages are retained on the Queue.
* Defaults to 345600 (4 days).
* Must be between 60 and 1209600 (14 days)

Check warning on line 44 in src/content/docs/queues/configuration/configure-queues.mdx

View workflow job for this annotation

GitHub Actions / Semgrep

semgrep.style-guide-potential-date-year

Potential year found. Documentation should strive to represent universal truth, not something time-bound. (add [skip style guide checks] to commit message to skip)

## Producer Worker configuration

Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/queues/configuration/javascript-apis.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ interface MessageSendRequest<Body = unknown> {
* <code>delaySeconds</code> <Type text="number" />

* The number of seconds to [delay a message](/queues/configuration/batching-retries/) for within the queue, before it can be delivered to a consumer.
* Must be an integer between 0 and 43200 (12 hours).
* Must be an integer between 0 and 86400 (24 hours).



Expand All @@ -156,7 +156,7 @@ Optional configuration that applies when sending a message to a queue.
* <code>delaySeconds</code> <Type text="number" />

* The number of seconds to [delay a message](/queues/configuration/batching-retries/) for within the queue, before it can be delivered to a consumer.
* Must be an integer between 0 and 43200 (12 hours). Setting this value to zero will explicitly prevent the message from being delayed, even if there is a global (default) delay at the queue level.
* Must be an integer between 0 and 86400 (24 hours). Setting this value to zero will explicitly prevent the message from being delayed, even if there is a global (default) delay at the queue level.

### `QueueSendBatchOptions`

Expand Down