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:
"max_batch_size": 10,
"max_batch_timeout": 5,
"max_concurrency": 3
"max_batch_size": 10,
"max_batch_timeout": 5,
"max_concurrency": 3
Advice appreciated, thanks.
1 Reply
Mitya
MityaOP4w ago
Anyone?

Did you find this page helpful?