Skip to content

Conversation

@antonydellavecchia
Copy link
Collaborator

No description provided.

@antonydellavecchia antonydellavecchia added the release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes label Dec 16, 2025
return new(wp, wp.channel, wp.workers, wids, Dict{Int, RemoteChannel}())
end

function OscarWorkerPool(manager::ClusterManager; project=nothing, kw...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function OscarWorkerPool(manager::ClusterManager; project=nothing, kw...)
function OscarWorkerPool(manager::ClusterManager; project=Base.active_project(), kw...)

The active project is I think a reasonable default, and matches what happens for local workers.
This way one could still manually pass nothing to avoid this step if needed.

There is also the option to use an `OscarWorkerPool` within a context,
such that closing down the processes happens automatically.
Will also accept a `manager` as an argument, `kw` will get passed to `addprocs` when initializing the workers.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a sentence explaining the project keyword as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants