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

ENH: replace portalocker with filelock #3025

Merged
merged 4 commits into from
Sep 11, 2019
Merged

Conversation

satra
Copy link
Member

@satra satra commented Sep 10, 2019

Summary

Replacing portalocker with filelock

@oesteban - this may still not resolve a timing issue. for that i don't know of a good solution other than to increase the timeout.

May fix #3024 and others

List of changes proposed in this PR (pull-request)

  • replace portalocker with filelock
  • updates cloghandler
  • adds locking to loadpkl and savepkl

Acknowledgment

  • (Mandatory) I acknowledge that this contribution will be available under the Apache 2 license.

@satra satra requested a review from oesteban September 10, 2019 18:20
Copy link
Contributor

@oesteban oesteban left a comment

Choose a reason for hiding this comment

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

Minimal cosmetic changes.

nipype/algorithms/misc.py Outdated Show resolved Hide resolved
nipype/external/cloghandler.py Outdated Show resolved Hide resolved
nipype/utils/config.py Outdated Show resolved Hide resolved
nipype/utils/config.py Outdated Show resolved Hide resolved
nipype/utils/config.py Outdated Show resolved Hide resolved
nipype/utils/filemanip.py Outdated Show resolved Hide resolved
nipype/utils/filemanip.py Outdated Show resolved Hide resolved
nipype/utils/filemanip.py Outdated Show resolved Hide resolved
nipype/utils/config.py Outdated Show resolved Hide resolved
Co-Authored-By: Oscar Esteban <code@oscaresteban.es>
@oesteban
Copy link
Contributor

Perhaps for a future PR it'd great to have an open function that 1) opens a lock and 2) replaces the standard open with gzip's in pickles.

@effigies
Copy link
Member

Perhaps for a future PR it'd great to have an open function that 1) opens a lock and 2) replaces the standard open with gzip's in pickles.

You can check out nibabel.openers for transparent compression.

@oesteban oesteban changed the title enh: replace portalocker with filelock ENH: replace portalocker with filelock Sep 11, 2019
@oesteban oesteban merged commit 2162c84 into nipy:master Sep 11, 2019
@effigies effigies added this to the 1.2.3 milestone Sep 11, 2019
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.

3 participants