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

Saving should report progress #45

Open
bogovicj opened this issue Oct 24, 2022 · 2 comments
Open

Saving should report progress #45

bogovicj opened this issue Oct 24, 2022 · 2 comments

Comments

@bogovicj
Copy link
Collaborator

It would be nice to have a way for external tools to listen to progress as

N5Utils.save, saveRegion, etc write blocks.

Perhaps by passing a Listener to the save methods that each job can increment when a block is written.

@cmhulbert @axtimwalde

@axtimwalde
Copy link
Contributor

After sleeping over this, I would first try to do this from outside because adding listeners clutters the API with things the most applications don't need. It looks like we can get meaningful feedback from the ThreadPoolExecutor, i.e. https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadPoolExecutor.html#getTaskCount-- and https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadPoolExecutor.html#getCompletedTaskCount--

@bogovicj
Copy link
Collaborator Author

bogovicj commented Nov 2, 2022

see also saalfeldlab/n5-ij@25a3816

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