Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add backoff strategy when a PGListener fails (#1623)
* Add backoff strategy when a PGListener fails * Re-add comment accidentaly removed * Remove unecessary paranthesis * Add retry time to log message * Fix type errors * Add minutes * Fix typo * Remove whitespace * Fix type error * Just keep retryLoop lopping if it succeeds * Abbreviate units to avoid pluralization cases * Put the sleep after the log message so the log message doesn't come after waiting * Better comments * Use <> instead of ++ for consistency * Retry with no delay interval on first error, but will increase delay interval in subsequent retries * Only increase retry delay when it's not the first error * Put log command before threadDelay * Fix printTimeToNextRetry * Display correct time interval on Log.info
- Loading branch information