[fix] 累加作业上的错误数
This commit is contained in:
parent
257f5be922
commit
4dce558592
|
@ -464,7 +464,8 @@ public class JobService(AppService appService, ICacheProvider cacheProvider, ITr
|
||||||
{
|
{
|
||||||
task.Times++;
|
task.Times++;
|
||||||
task.Error++;
|
task.Error++;
|
||||||
//ji.Message = err.Message;
|
|
||||||
|
job.Error++;
|
||||||
|
|
||||||
SetJobError(job, task, online.UpdateIP);
|
SetJobError(job, task, online.UpdateIP);
|
||||||
|
|
||||||
|
@ -512,7 +513,6 @@ public class JobService(AppService appService, ICacheProvider cacheProvider, ITr
|
||||||
|
|
||||||
job.Total += task.Total;
|
job.Total += task.Total;
|
||||||
job.Success += task.Success;
|
job.Success += task.Success;
|
||||||
//job.Error += task.Error;
|
|
||||||
job.Times++;
|
job.Times++;
|
||||||
if (task.Status == JobStatus.错误) job.Error++;
|
if (task.Status == JobStatus.错误) job.Error++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue