map remainingAttempts into elasticsearch task index