Disable webhook firing if disable in configuration. (#18386)

This commit is contained in:
Andy Butland
2025-02-19 15:50:08 +01:00
committed by GitHub
parent 040d4fe363
commit b10a11b5b7

View File

@@ -51,6 +51,12 @@ public class WebhookFiring : IRecurringBackgroundJob
public async Task RunJobAsync()
{
if (_webhookSettings.Enabled is false)
{
_logger.LogInformation("WebhookFiring task will not run as it has been globally disabled via configuration");
return;
}
IEnumerable<WebhookRequest> requests;
using (ICoreScope scope = _coreScopeProvider.CreateCoreScope())
{