Skip to content

Commit df8696f

Browse files
author
Zac Davies
committed
Adding timeout for long downloads (300s)
1 parent 337adef commit df8696f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

R/sql-query-execution.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,14 +475,15 @@ db_sql_fetch_results <- function(
475475
purrr::map_chr(~ .x$external_links[[1]]$external_link) |>
476476
purrr::map(
477477
~ httr2::request(.x) |>
478-
httr2::req_retry(max_tries = 3, backoff = ~1)
478+
httr2::req_retry(max_tries = 3, backoff = ~1) |>
479+
httr2::req_timeout(300)
479480
)
480481

481482
# Download arrow stream data with high parallelism
482483
ipc_data <- httr2::req_perform_parallel(
483484
links,
484485
max_active = max_active_connections,
485-
progress = FALSE
486+
progress = TRUE
486487
)
487488

488489
# Process Arrow data

0 commit comments

Comments
 (0)