Stephan
115ba8dcb8
Merge remote-tracking branch 'origin/dev-v7' into 7.3.0
...
Conflicts:
src/Umbraco.Tests/Scheduling/BackgroundTaskRunnerTests.cs
src/Umbraco.Web/Scheduling/BackgroundTaskRunner.cs
src/Umbraco.Web/Scheduling/BackgroundTaskRunnerAwaiter.cs
src/Umbraco.Web/Umbraco.Web.csproj
2015-05-21 20:49:18 +02:00
Stephan
a76ba9a0a7
BackgroundTaskRunner - more fixes
2015-05-21 19:37:22 +02:00
Shannon
9b086c7fdd
fixes merge issues
2015-05-21 17:14:25 +10:00
Shannon
b788a6c642
Merge remote-tracking branch 'origin/dev-v7' into 7.3.0
...
Conflicts:
src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlCacheFilePersister.cs
src/Umbraco.Web/Scheduling/BackgroundTaskRunner.cs
src/Umbraco.Web/Scheduling/BackgroundTaskRunnerAwaiter.cs
src/Umbraco.Web/Scheduling/Scheduler.cs
src/umbraco.cms/businesslogic/web/StyleSheet.cs
2015-05-21 17:12:30 +10:00
Shannon
4c4117a052
Fixes BackgroundTaskRunner - moves the OnStopped call to where it should be. Un-ignores tests - these need to execute and cannot be ignored. They are not long running but if there are issues then they will timeout - DO NOT IGNORE. if the build server has issues with these then it's our logic that is at fault.
2015-05-21 13:05:58 +10:00
Stephan
521b8076d2
U4-6638 - bugfix BackgroundTaskRunner
2015-05-20 20:56:05 +02:00
Shannon
9e223eb891
Merge remote-tracking branch 'origin/dev-v7' into 7.3.0
...
Conflicts:
src/Umbraco.Core/Cache/ObjectCacheRuntimeCacheProvider.cs
src/Umbraco.Core/CoreBootManager.cs
src/Umbraco.Web/Scheduling/BackgroundTaskRunner.cs
src/Umbraco.Web/umbraco.presentation/content.cs
2015-05-20 16:24:17 +10:00
Stephan
ac7ff31a67
U4-6626 - XmlCache, bugfix locks
2015-05-19 20:08:52 +02:00
Stephan
031f70f529
Merge branch 'dev-v7' into 7.3.0
...
Conflicts:
src/Umbraco.Core/ApplicationContext.cs
src/Umbraco.Core/Logging/LogHelper.cs
src/Umbraco.Web.UI.Client/src/less/login.less
src/Umbraco.Web/Scheduling/BackgroundTaskRunner.cs
2015-05-18 16:23:12 +02:00
Stephan
8121fc42e5
U4-6626 - fix log level
2015-05-17 21:47:31 +02:00
Shannon
c78b371965
updates the BackgroundTaskRunnerAwaiter so that it exits if the runner is not running when it is ctor'd, adds diags.
2015-04-09 17:59:34 +10:00
Shannon
e29668a01b
Changes DebugDiagnosticsLogger to not output Fail since that launches a debug entry window, adds some diagnostics to the background task runner stuff since the awaiter is waiting for every in very random cases.
2015-04-09 17:49:17 +10:00
Shannon
19715ef45f
Fixes build, updated BackgroundTaskRunner to get an ILogger injected
2015-04-09 17:12:52 +10:00
Shannon
24dc8309f1
sets ConfigureAwait(false) for XmlCacheFilePersister await calls and BackgroundTaskRunner await calls since these are always on background threads, no synchronizing with any context.
2015-04-08 17:15:21 +10:00
Shannon
147cc92ac5
Updates BackgroundTaskRunner & tests: removes the need for most Thread.Sleep which is error prone, this is done by updating the GetAwaiter() method to be a custom awaiter so we can await the entire background task running operations. We then add a property called CurrentThraedingTask which then allows awaiting the current Task instance. Adds error handling to all event handlers for the task runner. Changes events to be TypedEventHandlers
2015-04-08 16:28:42 +10:00
Stephan
58ce04e26b
cleanup
2015-03-27 14:49:31 +11:00
Shannon
4c3de920c6
Removes the 'else' so that 'wait' is always checked.
2015-03-27 14:49:31 +11:00
Stephan
be37026587
refactor latched background tasks, now use a task for xml
...
Conflicts:
src/Umbraco.Web.UI/config/ClientDependency.config
2015-03-27 14:49:25 +11:00
Stephan
b7436dc55f
refactor BackgroundTaskRunner
2015-03-27 14:47:42 +11:00
Shannon
bc068b201d
Updates BackgroundTaskRunner to ensure canceled or skipped tasks are disposed, updated tests to reflect
2015-03-27 14:47:42 +11:00
Shannon
912b01c9aa
Updates BackgroundTaskRunner to support more complex options including the ability to only execute the last/final task in the queue. Added tests to support, updated the 'content' object to use this option so that only the last task in the queue will execute so that file persisting doesn't get queued but the correctly queued data will be written.
2015-03-27 14:47:42 +11:00
Shannon
a82035061c
Updates BackgroundTaskRunner to support async operations. Updates the content xml cache file persisting to use a IBackgroundTask instead of the strange queuing for persistence - which was super strange because in many cases another request thread will actually be the thread that is persisting the xml file than the request thread that requested it created. This implementation is far better, the xml file will be persisted on a non request thread and will handle multiple documents being published at the same time guaranteeing that the latest published version is the one persisted. The file persistence is also web aware (due to how BackgroundTaskRunner works) so during app shutdown the file will still be written if it's currently being processed.
2015-03-27 14:47:41 +11:00
Shannon
b1d4a99510
U4-5728 - Do not run KeepAlive, ScheduledPublishing, without an url
...
Updates the scheduler and the scheduled tasks to use a background task runner (ported from new courier codebase with tests) so that they are web aware and wind down properly.
2014-11-12 16:00:17 +11:00