A batch API returns mixed results in random order. Run every job in the right order and retry the throttled ones without repeating work that already succeeded.