Commit Graph

4 Commits

Author SHA1 Message Date
Zack Cerza
73849c1179 Update safe_while's suggested usage pattern
I didn't love the way safe_while was encouraged to be used and it didn't
fit right with the new no-raising behavior. Now it's encouraged to be
used like this:

with safe_while() as proceed:
    while proceed():
        do_things()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-08 15:19:31 -06:00
Zack Cerza
73f5af2f6a Add optional 'action' parameter to safe_while
This is to make it easier to see what actually timed out when scanning
error logs

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-07 14:02:33 -06:00
Zack Cerza
8258c8479b Change safe_while defaults to 6s 10x no increment
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-07 13:33:27 -06:00
Alfredo Deza
60892ca995 tests for the new while helper
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-02-24 16:21:58 -05:00