Add returners to multi returns

This commit is contained in:
Thomas S Hatch 2011-04-16 15:58:39 -06:00
parent 8a8c4c99b5
commit cdd1ea8d82

View File

@ -297,7 +297,14 @@ class Minion(object):
+ ' exception: ' + str(exc))
ret['return'][data['fun'][ind]] = exc
ret['jid'] = data['jid']
self._return_pub(ret)
if data['ret']:
try:
self.returners[data['ret']](ret)
except Exception as exc:
self.opts['logger'].error('The return failed for job'\
+ data['jid'] + ' ' + exc)
else:
self._return_pub(ret)
def _return_pub(self, ret):
'''