Hello! I have a very misterious bug with
Hello! I have a very misterious bug with queues. I have a job that iterates a batch of 3 messages, but it only iterates 2 messages and then it never gets to the third:
This is my wrangler configuration
Any clue?
2 Replies
Are the messages getting delivered with the specified
max_batch_timeout
? Also, do you see the third message getting delivered in the next batch, at all?Are the messages getting delivered with the specified max_batch_timeout?Yes, I receive the 3 messages on the batch. The problem is not on the batching, but that somehow the loop does not run 3 times. the first console.log prints 3 messages: but then the console.log inside the loop only prints twice: And I can't see any error on the logs. uhh... I think I've got the bug. It's on my end. On the code that I've omited, there was an early return, and it looks like returning acks all messages automatically