give each task a unique id

This commit is contained in:
Paul Querna 2013-11-07 21:09:03 +00:00
parent 448a7da95b
commit d45974b049
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class BaseTask(MultiService, object):
def __init__(self, client, task_id, reporting_interval=10):
super(BaseTask, self).__init__()
self.log = get_logger(task_id=task_id, task_name=self.task_name)
self.setName(self.task_name)
self.setName(self.task_name + '.' + task_id)
self._client = client
self._id = task_id
self._percent = 0