Skip to content

Preprocessing h5 error fix#1590

Merged
mmccrackan merged 3 commits intomasterfrom
260326_cleanup_err
Mar 26, 2026
Merged

Preprocessing h5 error fix#1590
mmccrackan merged 3 commits intomasterfrom
260326_cleanup_err

Conversation

@mmccrackan
Copy link
Contributor

@mmccrackan mmccrackan commented Mar 26, 2026

When a preprocessing run is interrupted after copying the temp h5 file into the final h5 archive, but before the temp file is deleted, there will be a lingering temp file that will cause save_group_and_cleanup to fail with:

RuntimeError: Unable to synchronously copy object (destination object already exists)

This checks for the above error and removes the file when it is encountered whether overwrite is True or not (if overwriting, we want to remove the temp file so we can re-run it, and if overwrite is False it will cause a re-run since we decided that entries in the archive h5 file will be deleted if they are not in the sqlite db using cleanup_archive).

@mmccrackan mmccrackan merged commit 2e178a5 into master Mar 26, 2026
5 checks passed
@mmccrackan mmccrackan deleted the 260326_cleanup_err branch March 26, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants