Module backoff

Source
Expand description

Run a job in an interval that is increased if there are errors, and lowered again if there aren’t. Todo: measure time and subtract the job running time from the sleep time? Or at least, when gettng an error, take the passed time as the basis, not the min_sleep_seconds time (since that might be 0, even).

Structs§

LoopWithBackoff
Configuration data; implements Default so you can initialize an instance setting only the fields that you want to change (most likely only the *_sleep_seconds values).

Enums§

LoopVerbosity
Whether the loop should give additional messaging about its own working (this excludes messages about handling errors, and is just about reporting on normal working)