Mark retry_if_fails as internal