Queue consumers - when/when not wrap the code in `waitUntil()`?
Could someone please clarify when it is and isn't necessary/a good idea to use
waitUntil()
inside a queue consumer? The docs suggest using it, however queue consumers already run asynchronously, in the background (not as the result of a HTTP trigger), so unless the consumer is doing a LOT of work, and is therefore at risk of exceeding Worker limits, what's the point?
My consumer receives a bunch of messages and sends an email (via an API) for each one. Traffic to this queue is low, and the settings are quite conservative:
Advice appreciated, thanks.1 Reply
Anyone?