dandi / dandi-cli

DANDI command line client to facilitate common operations
https://dandi.readthedocs.io/
Apache License 2.0
22 stars 27 forks source link

Cannot interrupt download on Windows except by ending process #766

Open rly opened 3 years ago

rly commented 3 years ago

In the Windows command prompt, the Windows anaconda prompt, and the ConEmu/cmder terminal emulator, the command https://api.dandiarchive.org/api/assets/df57a7c0-220d-4756-bed5-028a74b0f916/download/ cannot be interrupted with Ctrl-C or Ctrl-D or any other common keyboard interrupt that I can think of. It can be interrupted only by ending the process...

This is not the same on ubuntu under Windows Substation for Linux. Ctrl-C (twice) works just fine there.

Perhaps a separate issue, but the format of the output is also not as clean as it is on linux. image

yarikoptic commented 4 days ago

Hi @rly . Is there a chance for you to check if you are still experiencing such an issue?

rly commented 3 days ago

I do not remember how exactly the original issue worked, but currently on Windows, ctrl-c stops all pending asynchronous workers. Any workers already running will continue downloading their files and cannot be stopped AFAICT.