@web.authenticated
    def get(self):
        app = self.application
        limit = self.get_argument('limit', None)
        worker = self.get_argument('workername', None)
        type = self.get_argument('taskname', None)
        state = self.get_argument('state', None)

        limit = limit and int(limit)
        worker = worker if worker != 'All' else None
        type = type if type != 'All' else None
        state = state if state != 'All' else None

        result = []
        for task_id, task in tasks.iter_tasks(
                app.events, limit=limit, type=type,
                worker=worker, state=state):
            task = tasks.as_dict(task)
            task.pop('worker', None)
            result.append((task_id, task))
        self.write(dict(result))
List tasks
dataset/ETHPy150Open mher/flower/flower/api/tasks.py/ListTasks.get