Commit 2d6f1af1 authored by Yumin Wu's avatar Yumin Wu

dynamically add task

parent 053a0753
......@@ -446,6 +446,7 @@ func StopTask() {
// AddTask add task with name
func AddTask(taskname string, t Tasker) {
t.SetNext(time.Now().Local())
AdminTaskList[taskname] = t
if isstart {
changed <- true
......
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