Skip to content

Handle parallel cores and Windows cluster cleanup#8

Open
Auxes1s wants to merge 1 commit into
bcallaway11:masterfrom
Auxes1s:master
Open

Handle parallel cores and Windows cluster cleanup#8
Auxes1s wants to merge 1 commit into
bcallaway11:masterfrom
Auxes1s:master

Conversation

@Auxes1s
Copy link
Copy Markdown

@Auxes1s Auxes1s commented May 13, 2026

In bootstrap(), ensure the cores argument is set to NULL when parallel flag pl is not TRUE, and on Windows create a parallel cluster object when cores is a single numeric > 1. Also register an on.exit() to stop the cluster, preventing orphaned worker processes. These changes make pblapply() receive an appropriate cl and ensure proper cleanup on Windows when using multiple cores.

In bootstrap(), ensure the `cores` argument is set to NULL when parallel flag `pl` is not TRUE, and on Windows create a parallel cluster object when `cores` is a single numeric > 1. Also register an on.exit() to stop the cluster, preventing orphaned worker processes. These changes make pblapply() receive an appropriate `cl` and ensure proper cleanup on Windows when using multiple cores.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant