Merge branch 'release/17.0' of https://github.com/umbraco/Umbraco-CMS into release/17.0

This commit is contained in:
Andy Butland
2025-10-27 11:43:34 +01:00
3 changed files with 8 additions and 1 deletions

View File

@@ -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";
/// <summary>

View File

@@ -5,6 +5,11 @@
/// </summary>
public class DistributedBackgroundJobModel
{
/// <summary>
/// The id of the job.
/// </summary>
public int Id { get; set; }
/// <summary>
/// Name of job.
/// </summary>

View File

@@ -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,