Skip to content

Conversation

@johntruckenbrodt
Copy link
Owner

@johntruckenbrodt johntruckenbrodt commented Jan 27, 2026

  • wait some time for the target's parent directory to exist
  • if soft=True, wait for the target to exist (and use this in pyroSAR.gamma.util.convert2gamma)
  • retry "touching" lock files for some time to avoid errors like this:
        Path(self.lock).touch(exist_ok=False)
      File "pathlib.py", line 1303, in touch
        fd = os.open(self, flags, mode)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    FileNotFoundError: [Errno 2] No such file or directory: '*.lock'
    

@coveralls
Copy link

coveralls commented Jan 27, 2026

Pull Request Test Coverage Report for Build 21672019192

Details

  • 33 of 44 (75.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.1%) to 54.048%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pyroSAR/gamma/util.py 0 4 0.0%
pyroSAR/ancillary.py 33 40 82.5%
Files with Coverage Reduction New Missed Lines %
pyroSAR/gamma/util.py 1 5.05%
Totals Coverage Status
Change from base Build 21667674295: 0.1%
Covered Lines: 4019
Relevant Lines: 7436

💛 - Coveralls

@johntruckenbrodt johntruckenbrodt changed the title [Lock] if soft=True, wait for the target to exist [Lock] add safeguards for network/distributed file systems Jan 27, 2026
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