Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

retry on exception python

@retry(wait_random_min=1000, wait_random_max=2000)
def wait_random_1_to_2_s():
    print("Randomly wait 1 to 2 seconds between retries")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #retry #exception #python
ADD COMMENT
Topic
Name
9+6 =