Exemplo n.º 1
0
 async def foobar(ctx):
     if ctx['job_try'] == 3:
         raise Retry()
     return ctx['job_try']
Exemplo n.º 2
0
 async def retry(ctx):
     if ctx['job_try'] <= 2:
         raise Retry(defer=0.01)
Exemplo n.º 3
0
 async def retry(ctx):
     raise Retry()
Exemplo n.º 4
0
async def test_retry_repr():
    assert str(Retry(123)) == '<Retry defer 123.00s>'
Exemplo n.º 5
0
 async def retry(ctx):
     raise Retry(defer=0.01)