If you're using the oncomplete to schedule the next batch, then Workpool might be a better answer. Depending on what you're inserting (can they be inserted in parallel, have to be linear) you may need to do this: https://www.convex.dev/components/workpool#optimize-occ-errors