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

File listening options #443

Open
ziw-liu opened this issue Oct 3, 2023 · 1 comment
Open

File listening options #443

ziw-liu opened this issue Oct 3, 2023 · 1 comment

Comments

@ziw-liu
Copy link
Contributor

ziw-liu commented Oct 3, 2023

For on-the-fly reconstruction that's planned for v1.0.0, we need to monitor file changes on the system, ideally in a portable (OS-agnostic) way.

Some options are:

  1. Use the IPC lock from zarr-python. This requires integration with the writer to write the lock file.
  2. Use Qt's file system watcher combined with zarr's chunk counting (zarr.Array.nchunks_initialized / zarr.Array.nchunks) to infer the change. This may not be safe from race conditions.
@talonchandler
Copy link
Collaborator

Thanks for looking into this @ziw-liu. Qt's file system watcher seems very promising to me...I'm excited to give it a shot.

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

No branches or pull requests

2 participants