clean up some unnecessary dispatcher reaping code

This commit is contained in:
Ryan Petrello
2019-01-24 02:19:18 -05:00
parent 1becd4c39d
commit 4707dc2a05
3 changed files with 18 additions and 15 deletions

View File

@@ -81,7 +81,11 @@ class AWXConsumer(ConsumerMixin):
def process_task(self, body, message):
if 'control' in body:
return self.control(body, message)
try:
return self.control(body, message)
except Exception:
logger.exception("Exception handling control message:")
return
if len(self.pool):
if "uuid" in body and body['uuid']:
try: