paws.common-v0.6.0
·
689 commits
to main
since this release
Performance:
- use known interface when parsing xml (#619) improving performance by 3-6x. Thanks to @mgirlich for raising, implementing initial method and testing. ๐
Enhancements:
- add expiration parameter to
creds
- add
signature_version
toconfig
(#645) - add the ability to
paginate
paws methods (#30). Note: this prep work for paws 0.4.0 - overwrite file destination when writing to disk. This mimics python's boto3 sdk behaviour.
- add standard retry handler (#520). Thanks to @wlandau for testing.
Example:
install.packages('paws', repos = c(pawsr = 'https://paws-r.r-universe.dev', CRAN = 'https://cloud.r-project.org'))
# Note: using paws v0.4.0 to paginate over AWS call to demonstrate the new retry functionality
library(paws)
client <- sagemaker()
resp <- client$list_processing_jobs() |> paginate()
#> ERROR [2023-08-31 15:44:41.206]: Request failed. Retrying in 0.016 seconds...
#> ERROR [2023-08-31 15:44:41.229]: Request failed. Retrying in 3.026 seconds...
#> ERROR [2023-08-31 15:44:44.289]: Request failed. Retrying in 2.505 seconds...
#> Error: ThrottlingException (HTTP 400). Rate exceeded
library(paws)
# increasing max number of retries from default 3 to 10.
client <- s3(config = list(max_retries = 10))