YARN-611 provides this feature. Currently Slider apps are bound by the number set for yarn.resourcemanager.am.max-retries in the cluster. By default this value is set to 2, which is very low for long running services.
Slider AM should use the feature provided in
YARN-611 and set an interval after which the failure count will be reset to 0.
I believe the API to call on ApplicationSubmissionContext is attemptFailuresValidityInterval. To start with Slider can set it to 5 mins which should be a reasonable default.