@huey.task(retries=3, retry_delay=10)
def try_thrice(msg):
    print('----TRY THRICE: %s----' % msg)
    if random.randint(1, 3) == 1:
        print('OK')
    else:
        print('About to fail, will retry in 10 seconds')
        raise Exception('Crap something went wrong')
dataset/ETHPy150Open coleifer/huey/examples/simple/tasks.py/try_thrice/original