'Get all tasks by worker.
Slower than accessing :attr:`tasks_by_worker`, but ordered by time.'

def _tasks_by_worker(self, hostname, limit=None, reverse=True):

    return islice(((uuid, task) for (uuid, task) in self.tasks_by_time(reverse=reverse) if (task.worker.hostname == hostname)), 0, limit)
