Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Colin Wiseman 56 posts 198 karma points
    Jan 16, 2025 @ 08:10
    Colin Wiseman
    0

    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?

    enter image description here

  • Nik 1625 posts 7295 karma points MVP 7x c-trib
    Jan 22, 2025 @ 23:31
    Nik
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft