Skip to content

Commit

Permalink
Make replace_by_state_option tuples instead of a keyword (#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
fahchen committed Jun 13, 2024
1 parent 5668f23 commit 37bceee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/oban/job.ex
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,14 @@ defmodule Oban.Job do
| :worker
]

@type replace_by_state_option :: [
@type replace_by_state_option ::
{:available, [replace_option()]}
| {:cancelled, [replace_option()]}
| {:completed, [replace_option()]}
| {:discarded, [replace_option()]}
| {:executing, [replace_option()]}
| {:retryable, [replace_option()]}
| {:scheduled, [replace_option()]}
]

@type schedule_in_option :: pos_integer() | {pos_integer(), time_unit()}

Expand Down

0 comments on commit 37bceee

Please sign in to comment.