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

ctrl-c break operations on windows #22

Open
pySRURGS opened this issue Sep 1, 2019 · 3 comments
Open

ctrl-c break operations on windows #22

pySRURGS opened this issue Sep 1, 2019 · 3 comments

Comments

@pySRURGS
Copy link

pySRURGS commented Sep 1, 2019

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

@zeehio
Copy link
Owner

zeehio commented Sep 1, 2019

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 👍

@sohrabtowfighi
Copy link

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

@zeehio
Copy link
Owner

zeehio commented Sep 2, 2019

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.

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

3 participants