Skip to content
Commit Detail

Commit c102caa

Author
Alex Robinson <arobinson@cloudflare.com> 2025-02-24 15:34:38 +0000
Parents
fb025ae
Tree
01d9567
Add compat flag for queue consumers to not block on waitUntil'ed work

The intent is that the event can be considered done when the
queue() handler's returned promise resolves, allowing acked/nacked
message info to be returned back to the queues infrastructure sooner,
rather than requiring all waitUntil'ed work to finish first. This has
two important benefits:
1. This will keep consumer invocations from getting slowed down by
   slow/hung waitUntil'ed tasks.
1. This will keep consumer invocations from failing due to failing
   waitUntil tasks.

This commit does not implement the new functionality, just adds the flag
and adds the logic to read the flag where needed. The actual
implementation will come in the next commit for easier review.

Files changed

2 files changed~2 modified