pgiri / dispy

Distributed and Parallel Computing Framework with / for Python
https://dispy.org
Other
266 stars 55 forks source link

"quit" / "exit" do not always work #148

Open UnitedMarsupials-zz opened 6 years ago

UnitedMarsupials-zz commented 6 years ago

After starting dispynode.py and obtaining status, I entered "quit" which did not do anything. Entering it again finally exited:

% dispynode.py 2018-09-13 14:57:04 dispynode - dispynode version: 4.9.1, PID: 78791 2018-09-13 14:57:04 pycos - version 4.8.2 with kqueue I/O notifier 2018-09-13 14:57:04 dispynode - "kachka" serving 4 cpus

Enter "quit" or "exit" to terminate dispynode, "stop" to stop service, "start" to restart service, "release" to check and close computation, "cpus" to change CPUs used, anything else to get status: ?

Serving 4 CPUs Completed: 0 Computations, 0 jobs, 0.000 sec CPU time Running:

Enter "quit" or "exit" to terminate dispynode, "stop" to stop service, "start" to restart service, "release" to check and close computation, "cpus" to change CPUs used, anything else to get status: quit

Enter "quit" or "exit" to terminate dispynode, "stop" to stop service, "start" to restart service, "release" to check and close computation, "cpus" to change CPUs used, anything else to get status: exit

When quit/exit is the first command, dispynode does exit immediately, but claims "KeyboardInterrupt" -- which there was not...

% dispynode.py 2018-09-13 14:59:08 dispynode - dispynode version: 4.9.1, PID: 86804 2018-09-13 14:59:08 pycos - version 4.8.2 with kqueue I/O notifier 2018-09-13 14:59:09 dispynode - "kachka" serving 4 cpus

Enter "quit" or "exit" to terminate dispynode, "stop" to stop service, "start" to restart service, "release" to check and close computation, "cpus" to change CPUs used, anything else to get status: quit Traceback (most recent call last): File "/opt/bin/dispynode.py", line 2006, in time.sleep(0.1) File "/opt/bin/dispynode.py", line 1981, in sighandler raise KeyboardInterrupt KeyboardInterrupt