jobRetry property

APICronRetry get jobRetry

The retry policy of the job: retry, with attempts if given.

Implementation

APICronRetry get jobRetry {
  var retry = this.retry ?? APICronRetry.defaultRetry;
  var attempts = this.attempts;
  if (attempts == null || attempts == retry.attempts) return retry;
  return APICronRetry(
    attempts: attempts,
    initialDelay: retry.initialDelay,
    multiplier: retry.multiplier,
    maxDelay: retry.maxDelay,
  );
}