-
-
Notifications
You must be signed in to change notification settings - Fork 522
Closed
Labels
Description
Because failed_send() is called right after should_try?(), last_check is updated to Time.now, meaning no messages can ever be sent until at least 36s (6 power of 2) has elapsed between two calls to send_event().
Expected behavior: backoff should try to send a message up to once every 36s in the worst case, until a successful send.
Observed behavior: After a single error, no further messages will be sent until there is a gap of 36s between calls to send_event(). On busy systems like I have, this means no more messages will be sent until the process is restarted.