Commit a3b41ab1 by hy

add necessary api for console end-point

parent 84bc4b27
......@@ -9,4 +9,5 @@ public class Task {
private String description;
private int parallelism;
private TaskState state;
private TaskDef taskDef;
}
......@@ -40,6 +40,7 @@ public class TaskManager {
task.setId(taskId);
task.setDescription(taskDef.getDescription());
task.setState(TaskState.NEW);
task.setTaskDef(taskDef);
int cpuNums = Utils.getCpuNums();
int parallelism = taskDef.getParallelism();
if (parallelism > cpuNums) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment