diff --git a/backend/src/Squidex.Domain.Apps.Entities/Contents/ContentSchedulerProcess.cs b/backend/src/Squidex.Domain.Apps.Entities/Contents/ContentSchedulerProcess.cs index b19f680f9..c430f5040 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 sealed class ContentSchedulerProcess : IBackgroundProcess 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 99c8e1f89..e31b54ab5 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 @@