Skip to content

Commit

Permalink
reformat adr
Browse files Browse the repository at this point in the history
  • Loading branch information
micossow committed Jul 9, 2024
1 parent e9d7660 commit e716e77
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/adr/0008-scheduled-repeat-retry.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 2. Retries
# 8. Retries

Date: 2024-07-09

Expand All @@ -8,8 +8,11 @@ How should the [retries](../retries.md) and [repeat](../repeat.md) APIs have the

## Decision

We're introducing `scheduled` as a common API for both retries and repeats.
We're introducing [scheduled](../scheduled.md) as a common API for both retries and repeats.

In addition, `Schedule` trait and its implementations are decoupled from the retry DSL, so that they can be used for repeating as well.
`retry` API remains unchanged, but it now uses `scheduled` underneath.

Also, `repeat` functions has been added as a sugar for `scheduled` with DSL focused on repeating.

The main difference between `retry` and `repeat` is about interpretation of the duration provided by the `Schedule` (delay vs interval).

0 comments on commit e716e77

Please sign in to comment.