fixed status running task & remove re-start scheduling from controller(add field lastfinish - update sql)
This commit is contained in:
parent
c443d94ac3
commit
59b097b10b
6 changed files with 389 additions and 11 deletions
|
@ -223,6 +223,14 @@ namespace WebsitePanel.EnterpriseServer
|
|||
TopTask.TaskName, executionLog);
|
||||
}
|
||||
|
||||
// update last finish time
|
||||
ScheduleInfo scheduleInfo = SchedulerController.GetSchedule(TopTask.ItemId);
|
||||
if (scheduleInfo != null)
|
||||
{
|
||||
scheduleInfo.LastFinish = DateTime.Now;
|
||||
SchedulerController.UpdateSchedule(scheduleInfo);
|
||||
}
|
||||
|
||||
// remove task from the stack
|
||||
TasksStack.RemoveAt(TasksStack.Count - 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue