|
|
|
@ -63,7 +63,7 @@ namespace EntrustSettle.Tasks
|
|
|
|
|
var model = await _tasksQzServices.QueryById(jobid);
|
|
|
|
|
if (model != null)
|
|
|
|
|
{
|
|
|
|
|
if(_tasksLogServices != null) await _tasksLogServices.Add(tasksLog);
|
|
|
|
|
if(_tasksLogServices != null) await _tasksLogServices.AddSplit(tasksLog);
|
|
|
|
|
model.RunTimes += 1;
|
|
|
|
|
if (model.TriggerType == 0) model.CycleHasRunTimes += 1;
|
|
|
|
|
if (model.TriggerType == 0 && model.CycleRunTimes != 0 && model.CycleHasRunTimes >= model.CycleRunTimes) model.IsStart = false;//循环完善,当循环任务完成后,停止该任务,防止下次启动再次执行
|
|
|
|
|