Skip to content

Commit 64607dd

Browse files
authored
Disable webhook firing if disable in configuration. (#18383)
1 parent db1d999 commit 64607dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Umbraco.Infrastructure/BackgroundJobs/Jobs/WebhookFiring.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ public WebhookFiring(
5151

5252
public async Task RunJobAsync()
5353
{
54+
if (_webhookSettings.Enabled is false)
55+
{
56+
_logger.LogInformation("WebhookFiring task will not run as it has been globally disabled via configuration");
57+
return;
58+
}
59+
5460
IEnumerable<WebhookRequest> requests;
5561
using (ICoreScope scope = _coreScopeProvider.CreateCoreScope())
5662
{

0 commit comments

Comments
 (0)