-
Notifications
You must be signed in to change notification settings - Fork 0
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
Faux-atomic write #8
Comments
To address this at Janelia, a companion For example:
I'm not sure how/where this is done since I'm just a consumer of this data, but it might be available to you already. However, a few advantages to the .keep file approach are:
I'm not a big fan of the .keep file setup, but I thought it was worth mentioning that it exists and how we currently use it. |
Thanks! That is another way of doing it. A halfway house would be to have the part files kept in a parallel directory hierarchy (under |
Mentioned elsewhere but worth its own issue:
It would be really helpful for downstream processing purposes for the in-process writing to be done to some file which is named differently to the final output, and then at the end of the process, rename it. Currently, it's nontrivial to tell whether a file is still being written to or whether it's complete. For the purposes of per-slice post-processing (e.g. converting to a sensible format), it would be nice to regularly run a script which just looks for files of the right name and deals with them.
This should be a relatively small change: the current software should just write to
f"{currentname}.part"
and then dorename(f"{currentname}.part", currentname)
at the end of the process.The text was updated successfully, but these errors were encountered: