When starting up, Umbraco does a lot of things and I am sure that some of these things may crash other things :D What I mean by that is when we deploy a site via Visual Studio deploy to a Linux Azure Web App, the Examine Files crash and cannot be deleted. I have to then deleted my swap slot and redeploy.
Some of these services aren't really need on Azure, e.g. KeepAlive? but it would be good to be able to turn any or all of them off to test how Umbraco runs without them.
If you were to add a composer/extension that after these were added, de-registered the one(s) you wanted to disable, then they wouldn't be loaded by the background task runner when the site starts.
The problem would be if other things needed those jobs to be registered.
Turning off services
When starting up, Umbraco does a lot of things and I am sure that some of these things may crash other things :D What I mean by that is when we deploy a site via Visual Studio deploy to a Linux Azure Web App, the Examine Files crash and cannot be deleted. I have to then deleted my swap slot and redeploy.
Some of these services aren't really need on Azure, e.g. KeepAlive? but it would be good to be able to turn any or all of them off to test how Umbraco runs without them.
Is that possible?
Hi Colin,
The short answer is "probably" but it may have unintended consequences.
The services are all registered with the DI container here:
https://github.com/umbraco/Umbraco-CMS/blob/ff44cf3a14beef1c8e0a9dd130d8bf2b701af0f0/src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilderExtensions.cs#L182
If you were to add a composer/extension that after these were added, de-registered the one(s) you wanted to disable, then they wouldn't be loaded by the background task runner when the site starts.
The problem would be if other things needed those jobs to be registered.
Just a thought :-)
Nik
is working on a reply...