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
Fix stopping service on windows (#66) #175
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 9012968557Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Thanks! This looks good. I will test it asap on a windows machine and the merge. |
Thanks for your contribution🥰 I've tested on my Windows 10 machine and it can be stoped by Ctrl-C, except a I pulled jv3ga/django-q2 and installed it via
Then I ran:
and a ModuleNotFoundError occured for
After I installed it, the qcluster started up, and can be stoped by Ctrl-C. |
Hi, Thanks for the tip. I added this on the file pywin32==306; platform_system == "Windows" and python_version >= "3.7" \
--hash=sha256:39b61c15272833b5c329a2989999dcae836b1eed650252ab1b7bfbe1d59f30f4 But I dont really underesteand why some requirements has two hashes, for example: ansicon==1.89.0; platform_system == "Windows" and python_version >= "2.7" \
--hash=sha256:f1def52d17f65c2c9682cf8370c03f541f410c1752d6a14029f97318e4b9dfec \
--hash=sha256:e4d039def5768a47e4afec8e89e83ec3ae5a26bf00ad851f914d1240b444d2b1 Can someone explainme how to get the second hash? |
@jv3ga Could you add it to the project.toml file instead (with a Windows condition, similar to this: https://python-poetry.org/docs/dependency-specification/#using-environment-markers)? And then poetry can render the requirements.txt file, so you don't have to worry about that. Could you also separate the oracle fix and put that in a new PR, please? |
This reverts commit 6f08db8.
Thanks for your answer, I'm kind of newie collaborating in open source projects. |
This fixes the #66 issue, it's happening because on windows the
ctrl+c
signal propagates over all subprocess (like pressingctrl+c
on each subprocess), then the sentinel will see that the workers and all other subprocess crashed, so it will restart each one. With this fix, we tell to workers, pushers and monitor to ignore that signal. And the cluster control the first signal stoping all subrpoces gracefully