Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public void Delete(DistributedBackgroundJobModel distributedBackgroundJob)
private DistributedJobDto MapToDto(DistributedBackgroundJobModel model) =>
new()
{
Id = model.Id ?? 0,
Name = model.Name,
Period = model.Period.Ticks,
LastRun = model.LastRun,
Expand All @@ -100,6 +101,7 @@ private DistributedJobDto MapToDto(DistributedBackgroundJobModel model) =>
private DistributedBackgroundJobModel MapFromDto(DistributedJobDto jobDto) =>
new()
{
Id = jobDto.Id,
Name = jobDto.Name,
Period = TimeSpan.FromTicks(jobDto.Period),
LastRun = jobDto.LastRun,
Expand Down
Loading