blob: 9380f07015ae74e315c4ac998a30a50c78c159fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import ApiController, RESTController
from ..tools import TaskManager
@ApiController('/task')
class Task(RESTController):
def list(self, name=None):
executing_t, finished_t = TaskManager.list_serializable(name)
return {
'executing_tasks': executing_t,
'finished_tasks': finished_t
}
|