Did it work previously for you at all? `send` vs `sendBatch` should make no difference.
Did it work previously for you at all?
send vs sendBatch should make no difference.send





delaySeconds option in sendBatch apply to each message in the batch? Or once for the entire batch.app.get("/test", async c => {
const message = `Test message. Random number: ${Math.floor(Math.random() * 100)}`;
await c.env.WEBSITE_QUEUE.send({
body: message,
});
return c.json({ success: `Queued up this message: ${message}` });
});export default {
fetch: app.fetch,
async queue(batch: MessageBatch<{ body: string }>, env: Environment) {
for (const message of batch.messages) {
console.log(
`Consuming message: ${JSON.stringify(message.body, null, 2)}`
);
}
},
};