mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-07 02:20:24 +08:00
创建缓存任务时即使没有有效的Key,也可以在后台查看创建的任务
This commit is contained in:
@@ -21,5 +21,5 @@ const (
|
|||||||
NodeVersion = "0.6.0"
|
NodeVersion = "0.6.0"
|
||||||
|
|
||||||
// SQLVersion SQL版本号
|
// SQLVersion SQL版本号
|
||||||
SQLVersion = "8"
|
SQLVersion = "9"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -206,6 +206,7 @@ func (this *HTTPCacheTaskDAO) UpdateTaskStatus(tx *dbs.Tx, taskId int64, isDone
|
|||||||
|
|
||||||
if isDone {
|
if isDone {
|
||||||
op.DoneAt = time.Now().Unix()
|
op.DoneAt = time.Now().Unix()
|
||||||
|
op.IsReady = true // 让后台列表能列出来
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.Save(tx, op)
|
return this.Save(tx, op)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user