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

Clean up cluster process reaping #6840

Merged
merged 1 commit into from
Aug 18, 2022

Conversation

gjoseph92
Copy link
Collaborator

Follow-up addressing #6829 (comment)

  • Tests added / passed
  • Passes pre-commit run --all-files

@gjoseph92 gjoseph92 requested a review from graingert August 5, 2022 17:33
@@ -590,15 +590,13 @@ def cluster(
nanny=False,
worker_kwargs=None,
active_rpc_timeout=10,
shutdown_timeout=20,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unused in codebase

scheduler_kwargs=None,
config=None,
):
worker_kwargs = worker_kwargs or {}
scheduler_kwargs = scheduler_kwargs or {}
config = config or {}

ws = weakref.WeakSet()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unused in function (and workers_by_pid already held strong references to the Process instances anyway). Plus we do want strong references, so that we can kill them at the end. It's not like garbage-collecting a Process instance means the actual OS process will be cleaned up.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2022

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

       15 files  ±0         15 suites  ±0   6h 32m 50s ⏱️ + 16m 29s
  2 990 tests ±0    2 899 ✔️ ±  0       89 💤 +  1  2  - 1 
22 173 runs   - 6  21 126 ✔️ +47  1 045 💤  - 52  2  - 1 

For more details on these failures, see this check.

Results for commit 376b526. ± Comparison against base commit e1f3779.

@gjoseph92
Copy link
Collaborator Author

@gjoseph92 gjoseph92 merged commit 61fca1c into dask:main Aug 18, 2022
@gjoseph92 gjoseph92 deleted the improve-cluster-contextmanager-kill branch August 18, 2022 00:33
gjoseph92 added a commit to gjoseph92/distributed that referenced this pull request Oct 31, 2022
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.

2 participants