Worker oome fix

Fix worker getting OOME when the disk writes are slow by making the indextask throttle on reaching maxPendingPersistBatch limit