For first retry compute_backoff
always return value below min_backoff
settings
#651
Open
7 tasks done
Checklist
Dramatiq calculate delay time like this:
dramatiq/dramatiq/middleware/retries.py
Line 130 in 3e20bdd
When message retries first time we have a
retries = 0
in this scope.Then
compute_backoff
return value always belowmin_backoff
This happend due default
jitter=True
flag incompute_backoff
functionYou can check it manually:
What OS are you using?
macOS 14.4.1
What version of Dramatiq are you using?
1.17.0
What did you do?
Run task with expected delay
What did you expect would happen?
Delay should be between min_backoff and max_backoff
What happened?
Calculated delay below min_backoff
The text was updated successfully, but these errors were encountered: