Skip to content

Commit

Permalink
Fix wrong example calculation of dispatch_cooldown in comment (oban-b…
Browse files Browse the repository at this point in the history
  • Loading branch information
MMore committed Sep 17, 2021
1 parent d511f5f commit fa527da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oban.ex
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ defmodule Oban do
and running more jobs. A slight cooldown period prevents a producer from flooding with
messages and thrashing the database. The cooldown period _directly impacts_ a producer's
throughput: jobs per second for a single queue is calculated by `(1000 / cooldown) * limit`.
For example, with a `5ms` cooldown and a queue limit of `25` a single queue can run 2,500
For example, with a `5ms` cooldown and a queue limit of `25` a single queue can run 5,000
jobs/sec.
The default is `5ms` and the minimum is `1ms`, which is likely faster than the database can
Expand Down

0 comments on commit fa527da

Please sign in to comment.