Port 7.7 - WIP
This commit is contained in:
@@ -71,8 +71,8 @@ namespace Umbraco.Web.Scheduling
|
||||
var results = new HealthCheckResults(checks);
|
||||
results.LogResults();
|
||||
|
||||
// Send using registered notification methods
|
||||
foreach (var notificationMethod in _notifications)
|
||||
// Send using registered notification methods that are enabled
|
||||
foreach (var notificationMethod in _notifications.Where(x => x.Enabled))
|
||||
await notificationMethod.SendAsync(results, token);
|
||||
}
|
||||
|
||||
|
||||
@@ -26,6 +26,9 @@ namespace Umbraco.Web.Scheduling
|
||||
|
||||
public override async Task<bool> PerformRunAsync(CancellationToken token)
|
||||
{
|
||||
if (Suspendable.ScheduledPublishing.CanRun == false)
|
||||
return true; // repeat, later
|
||||
|
||||
switch (_runtime.ServerRole)
|
||||
{
|
||||
case ServerRole.Slave:
|
||||
|
||||
Reference in New Issue
Block a user