diff --git a/src/Umbraco.Core/Configuration/Models/DistributedJobSettings.cs b/src/Umbraco.Core/Configuration/Models/DistributedJobSettings.cs index 49baff36b4..cafe666b7b 100644 --- a/src/Umbraco.Core/Configuration/Models/DistributedJobSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/DistributedJobSettings.cs @@ -8,7 +8,7 @@ namespace Umbraco.Cms.Core.Configuration.Models; [UmbracoOptions(Constants.Configuration.ConfigDistributedJobs)] public class DistributedJobSettings { - internal const string StaticPeriod = "00:00:10"; + internal const string StaticPeriod = "00:00:05"; internal const string StaticDelay = "00:01:00"; /// diff --git a/src/Umbraco.Infrastructure/Models/DistributedBackgroundJobModel.cs b/src/Umbraco.Infrastructure/Models/DistributedBackgroundJobModel.cs index 2ac0287ba8..899f71e172 100644 --- a/src/Umbraco.Infrastructure/Models/DistributedBackgroundJobModel.cs +++ b/src/Umbraco.Infrastructure/Models/DistributedBackgroundJobModel.cs @@ -5,6 +5,11 @@ /// public class DistributedBackgroundJobModel { + /// + /// The id of the job. + /// + public int Id { get; set; } + /// /// Name of job. /// diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DistributedJobRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DistributedJobRepository.cs index 6436a24d7b..4e6502dc7d 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DistributedJobRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DistributedJobRepository.cs @@ -90,6 +90,7 @@ internal class DistributedJobRepository(IScopeAccessor scopeAccessor) : IDistrib private DistributedJobDto MapToDto(DistributedBackgroundJobModel model) => new() { + Id = model.Id, Name = model.Name, Period = model.Period.Ticks, LastRun = model.LastRun, @@ -100,6 +101,7 @@ internal class DistributedJobRepository(IScopeAccessor scopeAccessor) : IDistrib private DistributedBackgroundJobModel MapFromDto(DistributedJobDto jobDto) => new() { + Id = jobDto.Id, Name = jobDto.Name, Period = TimeSpan.FromTicks(jobDto.Period), LastRun = jobDto.LastRun,