Merge Commit

Scheduler updated
This commit is contained in:
robvde 2013-03-10 22:56:53 +04:00
parent 90caf76ce3
commit dcf3c7417c

View file

@ -162,14 +162,13 @@ namespace WebsitePanel.EnterpriseServer
counter++;
}
// skip execution if the current task is still running
scheduledTasks = TaskManager.GetScheduledTasks();
if (!scheduledTasks.ContainsKey(schedule.ScheduleInfo.ScheduleId))
{
// skip execution if the current task is still running
scheduledTasks = TaskManager.GetScheduledTasks();
if (!scheduledTasks.ContainsKey(schedule.ScheduleInfo.ScheduleId))
{
// run the schedule in the separate thread
schedule.Run();
}
// run the schedule in the separate thread
schedule.Run();
}
}
catch (Exception Ex)