diff --git a/backend/src/Squidex.Domain.Apps.Entities/Contents/ContentSchedulerProcess.cs b/backend/src/Squidex.Domain.Apps.Entities/Contents/ContentSchedulerProcess.cs index b19f680f9d..c430f5040c 100644 --- a/backend/src/Squidex.Domain.Apps.Entities/Contents/ContentSchedulerProcess.cs +++ b/backend/src/Squidex.Domain.Apps.Entities/Contents/ContentSchedulerProcess.cs @@ -7,6 +7,7 @@ using Microsoft.Extensions.Logging; using NodaTime; +using Squidex.ClientLibrary; using Squidex.Domain.Apps.Entities.Contents.Commands; using Squidex.Domain.Apps.Entities.Contents.Repositories; using Squidex.Hosting; @@ -52,11 +53,18 @@ public Task StopAsync( public async Task PublishAsync( CancellationToken ct = default) { - var now = Clock.GetCurrentInstant(); + try + { + var now = Clock.GetCurrentInstant(); - await foreach (var content in contentRepository.StreamScheduledWithoutDataAsync(now, SearchScope.All, ct)) + await foreach (var content in contentRepository.StreamScheduledWithoutDataAsync(now, SearchScope.All, ct)) + { + await TryPublishAsync(content); + } + } + catch (Exception ex) { - await TryPublishAsync(content); + log.LogError(ex, "Failed to query scheduled status changes-"); } } diff --git a/frontend/src/app/features/settings/pages/more/more-page.component.html b/frontend/src/app/features/settings/pages/more/more-page.component.html index 99c8e1f890..e31b54ab5b 100644 --- a/frontend/src/app/features/settings/pages/more/more-page.component.html +++ b/frontend/src/app/features/settings/pages/more/more-page.component.html @@ -90,7 +90,7 @@