Try running the code without using ctx.waitUntil and see if you get any errors... its possible that
Try running the code without using ctx.waitUntil and see if you get any errors... its possible that waitUntil is swallowing the error
waitUntil unless you are actively loggingcsv-parse, maybe the internal Buffer is not flushing correctly.max_batch_size and max_batch_timeout on the queue?ackAll() ? batch.messages, whether it's a batch or 1 or 100.

queue handler throws an exception, otherwise returning without an error is considered success.
ackAll() as described there too 