Skip to content

Commit 22a2a05

Browse files
Update src/content/compatibility-flags/queue-consumer-no-wait-waituntil.md
Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
1 parent fc69066 commit 22a2a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/compatibility-flags/queue-consumer-no-wait-waituntil.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ function sleep(ms) {
3333
}
3434
```
3535

36-
If the `queue_consumer_no_wait_for_wait_until` flag is enabled, Queue consumers will no longer wait for promises passed to `ctx.waitUntil()` to resolve before acknowledging messages. This can improve the performance of queue consumers which utilize `ctx.waitUntil()`. With the flag enabled, in the above example, the consumer worker will acknowledge the batch without waiting for the sleep function to resolve.
36+
If the `queue_consumer_no_wait_for_wait_until` flag is enabled, Queue consumers will no longer wait for promises passed to `ctx.waitUntil()` to resolve before acknowledging messages. This can improve the performance of queue consumers which utilize `ctx.waitUntil()`. With the flag enabled, in the above example, the consumer Worker will acknowledge the batch without waiting for the sleep function to resolve.
3737

3838
Using this flag will not affect the behavior of `ctx.waitUntil()`. `ctx.waitUntil()` will continue to extend the lifetime of your consumer worker, to continue to work even after the batch of messages has been acknowledged.

0 commit comments

Comments
 (0)