mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-08 19:40:24 +08:00
延长节点执行任务超时时间
This commit is contained in:
@@ -125,7 +125,7 @@ func (this *NodeTaskService) FindNodeClusterTasks(ctx context.Context, req *pb.F
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 是否超时(N秒内没有更新)
|
// 是否超时(N秒内没有更新)
|
||||||
if int64(task.UpdatedAt) < time.Now().Unix()-120 {
|
if int64(task.UpdatedAt) < time.Now().Unix()-180 {
|
||||||
task.IsDone = true
|
task.IsDone = true
|
||||||
task.IsOk = false
|
task.IsOk = false
|
||||||
task.Error = "节点响应超时"
|
task.Error = "节点响应超时"
|
||||||
|
|||||||
Reference in New Issue
Block a user