Open vsoch opened 3 years ago
I had same issue , try CTRL + BREAK .
My laptop does not have a BREAK key or shortcut. What is the alternative?
I have the same issue. Is there a solution?
CTRL+C and CTRL+BREAK both don't work.
Came across this thread since I'm having a similar issue. Has anyone found a solution to this by chance?
Pressing CTRL + C performs the stop procedure (I think) but all the workers immediately get reincarnated and it never truly stops.
I'm having the same issue. qcluster simply reincarnates workers
Use CTRL + Z or Command + Z to terminate qcluster
Use CTRL + Z or Command + Z to terminate qcluster
This doesn't work for me too. Only way I found is to close the terminal. Does anybody know if that is secure tho?
Edit: When I do that and I run it again, it always returns some errors and then resumes the task normally. I suspect that might be due to leftover tasks still in memory failing to complete. Any light on this would be greatly appreciated.
File "C:\Python\lib\site-packages\django_q\cluster.py", line 432, in worker
res = f(*task["args"], **task["kwargs"])
TypeError: 'NoneType' object is not callable
10:15:04 [Q] ERROR Failed [seven-july-thirteen-mars] - 'NoneType' object is not callable : Traceback (most recent call last):
File "C:\Python\lib\site-packages\django_q\cluster.py", line 432, in worker
res = f(*task["args"], **task["kwargs"])
TypeError: 'NoneType' object is not callable
10:15:04 [Q] ERROR Failed [island-aspen-winter-artist] - 'NoneType' object is not callable : Traceback (most recent call last):
File "C:\Python\lib\site-packages\django_q\cluster.py", line 432, in worker
res = f(*task["args"], **task["kwargs"])
TypeError: 'NoneType' object is not callable```
After a discussion on a fork, I was able to stop qcluster
with Ctrl+Break
- performed by Ctrl+Fn+B
- which is handled differently to the KeyboardInterrupt
sent by Ctrl+C
.
This list of equivalent keyboard shortcuts might be useful for others: https://en.wikipedia.org/wiki/Break_key#Keyboards_without_Break_key
Thanks @JoeHitchen , Ctrl+Fn+B
worked in Windows
Use CTRL + Z or Command + Z to terminate qcluster
Thanks. This works for mac
Hi there! I'm using qcluster alongside django, and when I press control C to stop it, it never seems to quit. E.g.,
The server and qcluster are run from within the client start script (the snakeface command above) which uses the management.run_command to do this:
Is there something I am missing here?