Update OnScheduler issues.
This commit is contained in:
parent
1297722c6a
commit
b7ab52690e
4 changed files with 54 additions and 33 deletions
|
@ -46,7 +46,12 @@ namespace WebsitePanel.EnterpriseServer
|
|||
|
||||
protected void Application_Start(object sender, EventArgs e)
|
||||
{
|
||||
Scheduler.Start();
|
||||
if (ConfigurationManager.AppSettings["WebsitePanel.DistableScheduler"] != null)
|
||||
if (Boolean.Parse(ConfigurationManager.AppSettings["WebsitePanel.DistableScheduler"]) == false)
|
||||
{
|
||||
if (Scheduler.nextSchedule == null)
|
||||
Scheduler.Start();
|
||||
}
|
||||
}
|
||||
|
||||
protected void Application_End(object sender, EventArgs e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue