Handle SIGINT and SIGTERM in process_user_activity by closing communication gracefully

(imported from commit dcf813fa8af1aaf5d6cc635268757e40c6c202ab)
This commit is contained in:
Leo Franchi
2013-02-15 11:03:28 -05:00
parent c2074813ca
commit d4a582fa1c
2 changed files with 13 additions and 1 deletions

View File

@@ -65,3 +65,6 @@ class SimpleQueueClient(object):
def start_consuming(self):
self.channel.start_consuming()
def stop_consuming(self):
self.channel.stop_consuming()