parmap icon indicating copy to clipboard operation
parmap copied to clipboard

ctrl-c break operations on windows

Open pySRURGS opened this issue 5 years ago • 3 comments

Hey thanks for your project

I am trying to break some code while it's running and I find that ctrl-c doesn't actually terminate the run. It gives error but python still runs.

Is there a way to make parmap terminate on KeyboardInterrupt? Something like https://programmer.group/ctrl-c-in-python-can-t-terminate-multiprocessing-pool-solution.html

Thanks so much

pySRURGS avatar Sep 01 '19 03:09 pySRURGS

Thanks for the bug report, I'd like to ask you if you found the issue with parmap 1.5.2, and if you were using an earliest version please upgrade it.

I ask because there was a similar issue fixed in 1.5.2 (#14 interrupting parmap in a jupyternotebook). In case you are on the latest version I'll try to reproduce and fix the issue 👍

zeehio avatar Sep 01 '19 04:09 zeehio

Hey I am the person running the pySRURGS account. I wasn't sure how to check the version. I ran the following:

pip3.7 install parmap --upgrade
Requirement already up-to-date: parmap in /home/brain/.local/lib/python3.7/site-packages **(1.5.2)**

So I think I am on version 1.5.2

sohrabtowfighi avatar Sep 01 '19 05:09 sohrabtowfighi

Thanks. I'll look on implementing something like this solution: https://stackoverflow.com/a/6191991/446149

It may take me a while to find the time though.

zeehio avatar Sep 02 '19 08:09 zeehio