Error executing scheduled task - This instance has already started one or more requests.
HI all.
After Umbraco Cloud upgraded from 7.12.4. to 7.13.0, we are getting a tons of scheduled task about This instance has already started one or more requests.
It has something to do with the task in the umbracoSettings.config. But no matter how many or what kind of task we set in there. We get the same error. Even a simple one to load the frontpage.
It runs the first task, and then keep throwing this error after that.
Message:
Error executing scheduled task
Exception:
System.InvalidOperationException: This instance has already started one or more requests. Properties can only be modified before sending the first request.
at System.Net.Http.HttpClient.CheckDisposedOrStarted()
at System.Net.Http.HttpClient.set_BaseAddress(Uri value)
at Umbraco.Web.Scheduling.ScheduledTasks.<GetTaskByHttpAync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Umbraco.Web.Scheduling.ScheduledTasks.<ProcessTasksAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Umbraco.Web.Scheduling.ScheduledTasks.<PerformRunAsync>d__7.MoveNext()
Error executing scheduled task - This instance has already started one or more requests.
HI all.
After Umbraco Cloud upgraded from 7.12.4. to 7.13.0, we are getting a tons of scheduled task about This instance has already started one or more requests.
It has something to do with the task in the umbracoSettings.config. But no matter how many or what kind of task we set in there. We get the same error. Even a simple one to load the frontpage.
It runs the first task, and then keep throwing this error after that.
Hi Bo! Well that's embarrassing, seems like a bug introduced in 7.13 🙈
I've fixed it now and the fix will be release with 7.13.2 in a few weeks: https://github.com/umbraco/Umbraco-CMS/issues/4071
Great Sebastian, looking forward to it.
is working on a reply...