You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[gevent] Celery improper exit behavior on KeyboardInterrupt exception in task body. #457
Definitely about KeyboardInterrupt, but why doesn't gevent give control back to the green thread so the exception can be handled further down the stack, instead of raising it from the hubs stack?
Why does the pastebin output seem to suggest that there are multiple processes spawned, if it's running with the gevent pool?
I don't know if this is the same, or related to, the issue I've been having when trying to hit CTRL-C or killing celery running on the gevent pool, but after the following changes I can now stop celery normally:
My changes is a hack how ever, and I believe they break the ctrl-c/kill functionality when using the eventlet pool. Maybe one could just check what pool are used in the _stop handlers?
Upgrading to gevent 1.0a3 fixed the issue above. I now get a stacktrace when exiting celery in OSX, but it seems to work for me on Ubuntu/Linux. Maybe because epoll is used? I will conduct more testing.
Activity
ask commentedon Aug 27, 2011
Definitely about
KeyboardInterrupt, but why doesn't gevent give control back to the green thread so the exception can be handled further down the stack, instead of raising it from the hubs stack?heyman commentedon Sep 15, 2011
Why does the pastebin output seem to suggest that there are multiple processes spawned, if it's running with the gevent pool?
I don't know if this is the same, or related to, the issue I've been having when trying to hit CTRL-C or killing celery running on the gevent pool, but after the following changes I can now stop celery normally:
heyman@85e678c
My changes is a hack how ever, and I believe they break the ctrl-c/kill functionality when using the eventlet pool. Maybe one could just check what pool are used in the _stop handlers?
heyman commentedon Sep 19, 2011
Upgrading to gevent 1.0a3 fixed the issue above. I now get a stacktrace when exiting celery in OSX, but it seems to work for me on Ubuntu/Linux. Maybe because epoll is used? I will conduct more testing.