Test: aria2 task monitor

Fix: tmp file not deleted after transfer task failed to create
This commit is contained in:
HFO4
2021-11-09 20:53:42 +08:00
parent eeee43d569
commit 4d7b8685b9
7 changed files with 446 additions and 335 deletions

View File

@@ -72,7 +72,7 @@ func (service *AddURLService) Add(c *gin.Context, taskType int) serializer.Respo
}
// 创建任务监控
monitor.NewMonitor(task)
monitor.NewMonitor(task, cluster.Default, mq.GlobalMQ)
return serializer.Response{}
}