Skip to content

Commit

Permalink
ci(deploy): increase timeout for IMFdata collection
Browse files Browse the repository at this point in the history
Increase the timeout used for
`pacta.data.scraping::get_currency_exchange_rates())` to 600 seconds (10
min), to deal with server unavailability observed in the wild.
  • Loading branch information
AlexAxthelm committed Mar 1, 2024
1 parent 3d6555b commit eab7fd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run_pacta_data_preparation.R
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ if (config[["update_currencies"]]) {
currencies_preflight_data_path = currencies_preflight_data_path
)
currencies <- pacta.data.scraping::get_currency_exchange_rates(
quarter = config[["imf_quarter_timestamp"]]
quarter = config[["imf_quarter_timestamp"]],
max_seconds = 600L
)
saveRDS(currencies, currencies_preflight_data_path)
} else {
Expand Down

0 comments on commit eab7fd4

Please sign in to comment.