Warren
9e996c68bb
Refactored the error params, so that exception is before the message/template so its more in sync with Serilog signature & was an easy way to find some more logs I missed too
2018-08-17 15:41:58 +01:00
Warren
23ed9773bc
FIRST PASS - Updates Umbraco.Web project to not use the func overload & to use new message template instead
2018-08-14 22:36:47 +01:00
Dawid Koruba
7660e10098
Change calls to logger.Info method to use Func<string> parameter
2018-06-29 14:25:17 +02:00
Dawid Koruba
51ab9e32de
Change calls to logger.Debug method to use Func<string> parameter
2018-06-29 12:35:31 +02:00
Stephan
553de2ea68
Cleanup ILogger
2018-04-03 16:15:59 +02:00
Stephan
81234cd702
Rename DI to Composing
2017-05-30 15:46:25 +02:00
Stephan
13ec3db2d3
fix 7.6-rc1 port
2017-05-24 12:25:59 +02:00
Stephan
8561d85f7a
porting 7.6-rc1 into 8
2017-05-24 12:25:39 +02:00
Stephan
b26b415096
Merge origin/dev-v7-deploy into dev-v8-zbwip (builds)
2016-11-03 10:31:44 +01:00
Stephan
ca60b1e24d
More BackgroundTaskRunner troubleshooting
2016-10-05 15:07:47 +02:00
Stephan
3fd918d381
Refacetor BackgroundTaskRunner, fix async issues
2016-10-04 14:12:06 +02:00
Stephan
35c7fb60fd
Refactor BackgroundTaskRunner, support cancellation of current task
2016-10-03 15:15:51 +02:00
Stephan
79623a8a67
Fix BackgroundTaskRunner for tests without an app context
2016-09-29 16:04:27 +02:00
Stephan
3f22e727f6
Some things need to be public/adjusted for Deploy
2016-09-23 16:42:42 +02:00
Shannon
f130e86c88
U4-8448 Background task runner missing a null check during shutdown
2016-05-12 12:27:02 +02:00
Shannon
4a11bf68f3
U4-7949 The task runner has completed YSOD when using the Umbraco Package installer
2016-03-10 15:23:52 +01:00
Stephan
d83fdb48c9
Merge branch 7.2.7 into dev-v7
...
Conflicts:
build/UmbracoVersion.txt
src/SolutionInfo.cs
src/Umbraco.Core/ApplicationContext.cs
src/Umbraco.Core/AsyncLock.cs
src/Umbraco.Core/Cache/DictionaryCacheProviderBase.cs
src/Umbraco.Core/Cache/ObjectCacheRuntimeCacheProvider.cs
src/Umbraco.Core/CoreBootManager.cs
src/Umbraco.Core/Logging/LogHelper.cs
src/Umbraco.Core/PluginManager.cs
src/Umbraco.Core/Sync/ServerEnvironmentHelper.cs
src/Umbraco.Core/TypeFinder.cs
src/Umbraco.Core/Umbraco.Core.csproj
src/Umbraco.Tests/Scheduling/BackgroundTaskRunnerTests.cs
src/Umbraco.Tests/ServerEnvironmentHelperTests.cs
src/Umbraco.Web.UI.Client/bower.json
src/Umbraco.Web.UI.Client/gruntFile.js
src/Umbraco.Web.UI.Client/src/less/grid.less
src/Umbraco.Web.UI.Client/src/less/panel.less
src/Umbraco.Web.UI.Client/src/less/property-editors.less
src/Umbraco.Web.UI.Client/src/loader.js
src/Umbraco.Web.UI.Client/src/views/propertyeditors/datepicker/datepicker.controller.js
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
src/Umbraco.Web.UI/config/ClientDependency.config
src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlCacheFilePersister.cs
src/Umbraco.Web/Scheduling/BackgroundTaskRunner.cs
src/Umbraco.Web/Scheduling/KeepAlive.cs
src/Umbraco.Web/Scheduling/LatchedBackgroundTaskBase.cs
src/Umbraco.Web/Scheduling/LogScrubber.cs
src/Umbraco.Web/Scheduling/RecurringTaskBase.cs
src/Umbraco.Web/Scheduling/ScheduledPublishing.cs
src/Umbraco.Web/Scheduling/ScheduledTasks.cs
src/Umbraco.Web/Scheduling/Scheduler.cs
src/Umbraco.Web/UI/JavaScript/JsInitialize.js
src/Umbraco.Web/Umbraco.Web.csproj
src/Umbraco.Web/umbraco.presentation/content.cs
src/umbraco.cms/Actions/Action.cs
2015-07-13 22:45:37 +02:00
Stephan
34a9eef8b8
BackgroundTaskRunner - add Hosted option, refactor some tasks
...
Conflicts:
src/Umbraco.Web/Scheduling/BackgroundTaskRunner.cs
2015-07-13 14:13:47 +02:00
Shannon
1067b1e245
BackgroundTaskRunner - refactor recurring tasks, improve shutdown
...
Conflicts:
src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlCacheFilePersister.cs
src/Umbraco.Web/Scheduling/LogScrubber.cs
src/Umbraco.Web/Scheduling/Scheduler.cs
src/Umbraco.Web/Umbraco.Web.csproj
2015-07-08 17:41:20 +02:00
Shannon
ccda1bdd73
Refactor scheduled tasks & publishing cancellation
2015-07-08 17:23:15 +02:00
Shannon
69428b2281
Scheduled publishing is executing request async with cancellation token
2015-07-08 17:22:44 +02:00
Stephan
6833c195c1
BackgroundTaskRunner - refactor recurring tasks, improve shutdown
2015-07-08 13:18:46 +02:00
Stephan
f285af8a4e
Merge remote-tracking branch 'origin/dev-v7' into 7.3.0
2015-05-26 13:19:43 +02:00
Stephan
fa8fe8ec66
BackgroundTaskRunner - few fixes
2015-05-21 21:54:30 +02:00
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