Are retries supposed to work when testing locally?
Are retries supposed to work when testing locally?






leading option for it.caches.default but the requests seemd to hit before the cache write and subsequent read had updated await env.QUEUE.send(message)
cloudflare:test module.
ctx.waitUntil(promisse) followed by a msg.ack{} it does not receive other batches until all messages on this batch finishes processing.leadingcaches.default await env.QUEUE.send(message)
cloudflare:testctx.waitUntil(promisse)msg.ack{}async queue(batch, env, ctx) {
for (const message of batch.messages) {
try {
ctx.waitUntil(processBody(message.body))
message.ack()
} catch (e) {
message.retry()
}
}
}[[queues.consumers]]
queue = "my-webhook"
max_batch_size = 100
max_batch_timeout = 3 #seconds
max_retries = 3
retry_delay = 30 #seconds
dead_letter_queue = "my-webhook-dlq"
max_concurrency = 20