Skip to content

Commit 5339e1d

Browse files
committed
add retries
1 parent 3afd01b commit 5339e1d

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: conbenchcoms
22
Title: An API wrapper for conbench communications
3-
Version: 0.0.9
3+
Version: 0.0.10
44
Authors@R: c(
55
person("Jonathan", "Keane", , "[email protected]", role = c("aut", "ctb"),
66
comment = c(ORCID = "0000-0001-7087-9776")),

NEWS.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# combenchcoms 0.0.10
2+
* Add httr2's baked in retry strategy to all api calls
3+
14
# conbenchcoms 0.0.9
25
* Remove `compare` function
36
* Add `compare_results` function (similar to old `compare` but only works for comparing benchmark results)

R/session.R

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ conbench_perform <- function(data, ...) {
1616
resp <- data |>
1717
req_error(is_error = function(resp) FALSE) |>
1818
req_headers(cookie = .conbench_session$cookie) |>
19+
req_retry(max_tries = 5) |>
1920
req_perform(...)
2021

2122
# Authenticate if we need to
@@ -25,6 +26,7 @@ conbench_perform <- function(data, ...) {
2526
resp <- data |>
2627
req_error(body = error_body) |>
2728
req_headers(cookie = .conbench_session$cookie) |>
29+
req_retry(max_tries = 5) |>
2830
req_perform(...)
2931

3032
resp

0 commit comments

Comments
 (0)