I changed it to ```js async queue(batch, env, ctx) { for (const message of batch.messages) {

I changed it to

async queue(batch, env, ctx) { 
  for (const message of batch.messages) {
    try {
      //Lots of seconds because call AI APIs and other stuff
      await processBody(message.body) 
      message.ack()
    } catch (e) {
      message.retry()
    }
  }
}


but still the same result. No concurrency. Only starts another batch when the current batch ends
Was this page helpful?