()
| 46 | var AllocIdTaskNameToTaskHandler *TaskStoreForApi |
| 47 | |
| 48 | func newTaskStoreForApi() *TaskStoreForApi { |
| 49 | return &TaskStoreForApi{store: map[string]*taskHandle{}} |
| 50 | } |
| 51 | |
| 52 | // it can only use allocId and taskName to identify the task from http api |
| 53 | // but internal operation like deleting task need taskId to identify the task |