Builds the retry state for a polling data source: the poll interval is the
operating cadence, so no wait is ever shorter than it; in the normal regime
both bounds are the interval itself, so a normal failure simply polls again
on schedule; the extended regime runs from 5 minutes (or the interval, if
longer) up to 1 hour (or the interval, if longer); and the state resets
after two successful polls in a row.
The poll interval is validated here; the documented default of 30 seconds
stands in for anything that is not a positive, finite number.
Builds the retry state for a polling data source: the poll interval is the operating cadence, so no wait is ever shorter than it; in the normal regime both bounds are the interval itself, so a normal failure simply polls again on schedule; the extended regime runs from 5 minutes (or the interval, if longer) up to 1 hour (or the interval, if longer); and the state resets after two successful polls in a row.
The poll interval is validated here; the documented default of 30 seconds stands in for anything that is not a positive, finite number.