3147: Add retry_method to the Python SDK.
authorBrett Smith <brett@curoverse.com>
Fri, 12 Sep 2014 12:49:21 +0000 (08:49 -0400)
committerBrett Smith <brett@curoverse.com>
Thu, 18 Sep 2014 19:51:47 +0000 (15:51 -0400)
commit5a9aaf3f32fc0414ae16aed17a77388cf4af9f90
treebd92719b85aea502e69c910c3784d63786676087
parentaf2c75821456e28875dc8006efb03f38ec1a74b8
3147: Add retry_method to the Python SDK.

This gives us a way to make retry support flexible and consistent
across SDK classes.  Any class that has retryable operations should
take a num_retries argument at initialization.  Then, the specific
methods that implement those operations should also take a num_retries
argument, which will fall back to the instance's setting by default.
This lets SDK users express their retry preferences wherever it's most
convenient for them.
sdk/python/arvados/retry.py
sdk/python/tests/test_retry.py