Skip to content

Commit

Permalink
Clarify the issue some more.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Mar 17, 2016
1 parent 97e093c commit af54ffb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion st2common/st2common/util/gunicorn_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ class EventletSyncWorker(SyncWorker):
Custom sync worker for gunicorn which works with eventlet monkey patching.
This worker class fixes "AssertionError: do not call blocking functions from
the mainloop" and some other issues on SIGINT / SIGTERM.
the mainloop" and some other issues on SIGINT / SIGTERM signal.
The actual issue happens in "time.sleep" call in "handle_quit" method -
https://github.com/benoitc/gunicorn/blob/master/gunicorn/workers/base.py#L166
which results in the assertion failure here -
https://github.com/simplegeo/eventlet/blob/master/eventlet/greenthread.py#L27
"""

def handle_quit(self, sig, frame):
Expand Down

0 comments on commit af54ffb

Please sign in to comment.