Over 10 years of community discussion and knowledge are maintained here as a read-only archive.
(r.retryPolicy as RetryPolicy).getFailedCount()