12684: Support num_retries in PySDK client constructors
authorBrett Smith <brett.smith@curii.com>
Thu, 4 May 2023 20:21:08 +0000 (16:21 -0400)
committerBrett Smith <brett.smith@curii.com>
Thu, 4 May 2023 22:36:18 +0000 (18:36 -0400)
commitbb39fb01d3147c6009ee35920ae0637201b11dd2
tree9d743622d02c1af58d2a5a3916b019e85d1ea629
parent35895ee91c820680bb7df9696ab2e92525ead2ac
12684: Support num_retries in PySDK client constructors

This lets users set their preferred retry strategy once, rather than in
every call to execute(), which is error-prone. The default num_retries
is 10 because we expect most users to care more about eventual success
than responsiveness. See the added release notes for further discussion
and rationale.

Changes to the rest of the code are mostly about supporting this
consistently. Tests that relied on the old no-default-num_retries
behavior now specify that explicitly.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
23 files changed:
doc/admin/upgrading.html.textile.liquid
doc/sdk/python/api-client.html.textile.liquid
sdk/cwl/arvados_cwl/__init__.py
sdk/python/arvados/api.py
sdk/python/arvados/collection.py
sdk/python/arvados/commands/_util.py
sdk/python/arvados/commands/arv_copy.py
sdk/python/arvados/commands/federation_migrate.py
sdk/python/arvados/commands/get.py
sdk/python/arvados/commands/keepdocker.py
sdk/python/arvados/commands/ls.py
sdk/python/arvados/commands/put.py
sdk/python/arvados/commands/ws.py
sdk/python/arvados/keep.py
sdk/python/arvados/stream.py
sdk/python/tests/test_api.py
sdk/python/tests/test_collections.py
sdk/python/tests/test_keep_client.py
sdk/python/tests/test_retry_job_helpers.py
sdk/python/tests/test_stream.py
services/fuse/arvados_fuse/command.py
services/fuse/tests/test_command_args.py
services/fuse/tests/test_retry.py