Skip to content

Commit 38c77f6

Browse files
committed
设备在线状态不再自动停止作业,因为在线错误是连续累计值
1 parent 1c374b7 commit 38c77f6

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

AntJob.Server/Services/JobService.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -591,11 +591,12 @@ private void CheckMaxError(App app, Job job, AppOnline online)
591591
job.Update();
592592
}
593593

594-
if (online.Enable && online.Error > maxError)
595-
{
596-
online.Enable = false;
597-
online.Update();
598-
}
594+
//!!! 设备在线状态不再自动停止作业,因为在线错误是连续累计值
595+
//if (online.Enable && online.Error > maxError)
596+
//{
597+
// online.Enable = false;
598+
// online.Update();
599+
//}
599600
}
600601
#endregion
601602

0 commit comments

Comments
 (0)