Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested pa_* support #2

Open
albert-ying opened this issue Jul 11, 2022 · 1 comment
Open

Nested pa_* support #2

albert-ying opened this issue Jul 11, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@albert-ying
Copy link

Currently the nested process gives error (at least in linux)

pa_walk(c(1:10), ~{
  pa_walk(c(1:10), ~{
    print(.x)
  }, cores = 2)
}, cores = 2)
Error in { : 
  task 1 failed - "the ... list contains fewer than 2 elements"

Interestingly, the error message changed sometimes (usually when used more cores)

Error in { : 
  task 1 failed - "creation of server socket failed: port 11494 cannot be opened"
@moosa-r
Copy link
Owner

moosa-r commented Jul 13, 2022

Thank you very much for reporting this issue. It is most probably due to scoping and the environment that the .f expression is being evaluated. I will look into it.

@moosa-r moosa-r added the bug Something isn't working label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants