Pass n_tries to Request.execute

This commit is contained in:
Fabio Manganiello 2017-12-22 18:11:42 +01:00
parent f04d0bd24f
commit 16dabd7575

View file

@ -72,7 +72,7 @@ class Daemon(object):
if isinstance(msg, Request): if isinstance(msg, Request):
logging.info('Processing request: {}'.format(msg)) logging.info('Processing request: {}'.format(msg))
msg.execute() msg.execute(n_tries=self.n_tries)
self.processed_requests += 1 self.processed_requests += 1
if self.requests_to_process \ if self.requests_to_process \