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

@gen_cluster to write to /tmp #6237

Closed
wants to merge 4 commits into from

Conversation

crusaderky
Copy link
Collaborator

@crusaderky crusaderky commented Apr 28, 2022

Don't leave cruft around the working directory. Prevent a wealth of problems for developers with their home directory on a network filesystem.

Closes #6233.

loop,
with tempfile.TemporaryDirectory() as tmpdir:
config2 = merge({"temporary-directory": tmpdir}, config)
with dask.config.set(config2):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Everything beyond this line is just an extra indentation

@mrocklin
Copy link
Member

+1 in principle

@github-actions
Copy link
Contributor

github-actions bot commented Apr 28, 2022

Unit Test Results

       16 files  ±0         16 suites  ±0   7h 30m 48s ⏱️ + 7m 25s
  2 743 tests ±0    2 660 ✔️ +1       81 💤 ±0  2  - 1 
21 845 runs  ±0  20 791 ✔️  - 1  1 050 💤 +2  4  - 1 

For more details on these failures, see this check.

Results for commit 96201b4. ± Comparison against base commit 70e1fca.

♻️ This comment has been updated with latest results.

@crusaderky
Copy link
Collaborator Author

crusaderky commented Apr 29, 2022

The move to /tmp seems inconsequential to #6233. I think it's still good to have in regardless.
On the good news, the failure shows that the PR works as intended 😄

FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpx412v2i2/dask-worker-space/worker-e6g08lej/storage/SlowSpill-4ca0908c-23f3-4efa-a7db-3714b986b91d'

@crusaderky crusaderky marked this pull request as ready for review April 29, 2022 15:47
@crusaderky
Copy link
Collaborator Author

Ready for final review

@crusaderky
Copy link
Collaborator Author

All failures are unrelated

@crusaderky crusaderky self-assigned this May 4, 2022
@crusaderky crusaderky closed this May 6, 2022
@crusaderky crusaderky deleted the tmp_worker_space branch May 6, 2022 15:24
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.

test_release_evloop_while_spilling failing on MacOSX
2 participants