-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
f7bcdbb
commit 1fc8dfe
Showing
2 changed files
with
71 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters