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

Specialize remotecall_pool(remotecall) to wait for the remotecall #120

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

JamesWrigley
Copy link
Collaborator

Otherwise the worker would prematurely be put back into the pool, causing oversubscription. Also added a warning about oversubscription to the docstring for remote_do(f, ::AbstractWorkerPool).

Fixes #81. Cherry-picked from JuliaParallel/DistributedNext.jl#20.

@JamesWrigley JamesWrigley self-assigned this Jan 17, 2025
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 79.26%. Comparing base (1c7eb92) to head (89b4cd3).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
src/workerpool.jl 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #120      +/-   ##
==========================================
+ Coverage   79.19%   79.26%   +0.06%     
==========================================
  Files          10       10              
  Lines        1923     1934      +11     
==========================================
+ Hits         1523     1533      +10     
- Misses        400      401       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JamesWrigley
Copy link
Collaborator Author

(bump)

@LilithHafner
Copy link
Member

Thanks for the PR. Unfortunately, I will not be able to review this.

@LilithHafner LilithHafner removed their request for review January 24, 2025 18:59
@JamesWrigley JamesWrigley force-pushed the workerpool-remotecall branch from 623379f to 22bbd5e Compare January 26, 2025 15:05
src/workerpool.jl Outdated Show resolved Hide resolved
Otherwise the worker would prematurely be put back into the pool, causing
oversubscription. Also added a warning about oversubscription to the docstring
for `remote_do(f, ::AbstractWorkerPool)`.
@JamesWrigley JamesWrigley force-pushed the workerpool-remotecall branch from 22bbd5e to 89b4cd3 Compare January 26, 2025 15:25
@JamesWrigley JamesWrigley merged commit e4bd504 into master Jan 26, 2025
8 checks passed
@JamesWrigley JamesWrigley deleted the workerpool-remotecall branch January 26, 2025 15:35
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.

Documentation of Distributed.remotecall() misleading
3 participants