Closed rkrug closed 9 months ago
Based on among others https://community.rstudio.com/t/running-parallel-on-mac/142580/6, I have set OBJC_DISABLE_INITIALIZE_FORK_SAFETY in environ to YES
:
Sys.getenv("OBJC_DISABLE_INITIALIZE_FORK_SAFETY")
[1] "YES"
But no change.
httr has been superseded by httr2, so no further development work will happen. I'd recommend giving httr2::req_perform_parallel()
a go since it does parallel requests in a way that actually works (i.e. using curl's parallel request facilities).
Thanks - I'll look into httr2
. Although httr2::req_perform_parallel()
is unfortunately an option, as the call ia=s in a package.
Why isn't it an option?
It is not my package....
And also, parallel calls can cause problems due to API restrictions of that specific api - so it needs to be handled with care.
Oh got it.
macOS Sonoma, MacBook Pro, M1 Pro chip
Trying to use
parallel::mclapply()
to do GET requests in parallel, results in errors on all cores.After executing a single core request once, results in the error disappearing.