when batching size is set, wait time is required to prevent live lock