fixed bug with reset settings tasks & update tasktype id DB
This commit is contained in:
parent
59b097b10b
commit
38c8ac1199
2 changed files with 8 additions and 4 deletions
|
@ -809,4 +809,8 @@ exec sp_xml_removedocument @idoc
|
||||||
|
|
||||||
COMMIT TRAN
|
COMMIT TRAN
|
||||||
RETURN
|
RETURN
|
||||||
|
GO
|
||||||
|
|
||||||
|
UPDATE ScheduleTasks SET TaskType = RTRIM(TaskType) + '.Code'
|
||||||
|
WHERE SUBSTRING(RTRIM(TaskType), LEN(RTRIM(TaskType)) - 3, 4) <> 'Code'
|
||||||
GO
|
GO
|
|
@ -224,11 +224,11 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
}
|
}
|
||||||
|
|
||||||
// update last finish time
|
// update last finish time
|
||||||
ScheduleInfo scheduleInfo = SchedulerController.GetSchedule(TopTask.ItemId);
|
SchedulerJob schedule = SchedulerController.GetScheduleComplete(TopTask.ItemId);
|
||||||
if (scheduleInfo != null)
|
if (schedule != null)
|
||||||
{
|
{
|
||||||
scheduleInfo.LastFinish = DateTime.Now;
|
schedule.ScheduleInfo.LastFinish = DateTime.Now;
|
||||||
SchedulerController.UpdateSchedule(scheduleInfo);
|
SchedulerController.UpdateSchedule(schedule.ScheduleInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove task from the stack
|
// remove task from the stack
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue