diff --git a/src/Umbraco.Web/Scheduling/ScheduledPublishing.cs b/src/Umbraco.Web/Scheduling/ScheduledPublishing.cs index 6bc5492973..2d16b08511 100644 --- a/src/Umbraco.Web/Scheduling/ScheduledPublishing.cs +++ b/src/Umbraco.Web/Scheduling/ScheduledPublishing.cs @@ -30,7 +30,7 @@ namespace Umbraco.Web.Scheduling try { var umbracoBaseUrl = ServerEnvironmentHelper.GetCurrentServerUmbracoBaseUrl(); - var url = string.Format("{0}/RestServices/ScheduledPublish/", umbracoBaseUrl); + var url = string.Format("{0}/RestServices/ScheduledPublish/Index", umbracoBaseUrl); using (var wc = new WebClient()) { //pass custom the authorization header diff --git a/src/Umbraco.Web/Scheduling/Scheduler.cs b/src/Umbraco.Web/Scheduling/Scheduler.cs index db3ff1b5ed..a23f942f76 100644 --- a/src/Umbraco.Web/Scheduling/Scheduler.cs +++ b/src/Umbraco.Web/Scheduling/Scheduler.cs @@ -13,6 +13,10 @@ namespace Umbraco.Web.Scheduling /// TODO: Much of this code is legacy and needs to be updated, there are a few new/better ways to do scheduling /// in a web project nowadays. /// + /// //TODO: We need a much more robust way of handing scheduled tasks and also need to take into account app shutdowns during + /// a scheduled tasks operation + /// http://haacked.com/archive/2011/10/16/the-dangers-of-implementing-recurring-background-tasks-in-asp-net.aspx/ + /// /// internal sealed class Scheduler : ApplicationEventHandler { @@ -25,6 +29,8 @@ namespace Umbraco.Web.Scheduling if (umbracoApplication.Context == null) return; + LogHelper.Debug(() => "Initializing the scheduler"); + // time to setup the tasks // these are the legacy tasks