Skip to main content

Module retry

Module retry 

Source
Expand description

Trying a connection again after it fails in a way that may pass, waiting longer after each failure in a row.

Constantsยง

FIRST_DELAY ๐Ÿ”’
How long to wait before the first retry; each one after waits twice as long.
LONGEST_DELAY ๐Ÿ”’
The longest wait, so a download that keeps failing still tries now and then.

Functionsยง

delay ๐Ÿ”’
How long to wait after failures failures in a row, the first being 1.
retry_count ๐Ÿ”’
How many times in a row a connection is tried again when the call asks for asked; any number below zero asks for none.