Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Nov 11, 2024
1 parent b91ebed commit e2cc9bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions guides/error_handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ When a job fails and the number of execution attempts is below the configured `m
for that job, the job will automatically be retried in the future. If the number of failures
reaches `max_attempts`, the job gets **discarded**.

The retry delay has an exponential backoff, meaning the job's second attempt will be after 16s,
third after 31s, fourth after 1m 36s, and so on.
The retry delay has an *exponential backoff with jitter*. This means that the delay between
attempts grows exponentially (8s, 16s, and so on), and a randomized "jitter" is introduced for
each attempt, so that chances of jobs overlapping when being retried go down. So, a job could be
retried after 7.3s, then 17.1s, and so on.

See the `Oban.Worker` documentation on "Customizing Backoff" for alternative backoff strategies.

Expand Down

0 comments on commit e2cc9bc

Please sign in to comment.