fixed status running task & remove re-start scheduling from controller(add field lastfinish - update sql)

This commit is contained in:
vfedosevich 2013-05-15 20:43:41 +03:00
parent c443d94ac3
commit 59b097b10b
6 changed files with 389 additions and 11 deletions

View file

@ -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);
}