You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
114 lines
3.3 KiB
114 lines
3.3 KiB
using SqlSugar;
|
|
using System;
|
|
|
|
namespace Wood.Entity.SystemManage;
|
|
|
|
/// <summary>
|
|
/// 系统作业触发器表
|
|
/// </summary>
|
|
[SugarTable("SysJobTrigger", "系统作业触发器表")]
|
|
public class JobTriggerEntity : EntityCreateBase
|
|
{
|
|
/// <summary>
|
|
/// 触发器Id
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "触发器Id", Length = 64)]
|
|
public virtual string TriggerId { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 作业Id
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "作业Id", Length = 64)]
|
|
public virtual string JobId { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 触发器类型FullName
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "触发器类型")]
|
|
public TriggerTypeEnum TriggerType { get; set; } = TriggerTypeEnum.Cron;
|
|
|
|
/// <summary>
|
|
/// 参数
|
|
/// 运行时间间隔
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "参数", Length = 128)]
|
|
public string Args { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 描述信息
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "描述信息", Length = 128, IsNullable = true)]
|
|
public string? Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "状态")]
|
|
public TriggerStatusEnum Status { get; set; } = TriggerStatusEnum.Ready;
|
|
|
|
/// <summary>
|
|
/// 起始时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "起始时间", IsNullable = true)]
|
|
public DateTime? StartTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 结束时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "结束时间", IsNullable = true)]
|
|
public DateTime? EndTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 最近运行时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "最近运行时间", IsNullable = true)]
|
|
public DateTime? LastRunTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 下一次运行时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "下一次运行时间", IsNullable = true)]
|
|
public DateTime? NextRunTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 触发次数
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "触发次数")]
|
|
public long NumberOfRuns { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 最大触发次数(0:不限制,n:N次)
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "最大触发次数")]
|
|
public long MaxNumberOfRuns { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 出错次数
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "出错次数")]
|
|
public long NumberOfErrors { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 最大出错次数(0:不限制,n:N次)
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "最大出错次数")]
|
|
public long MaxNumberOfErrors { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 重试次数
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "重试次数")]
|
|
public int NumRetries { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 重试间隔时间(ms)
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "重试间隔时间(ms)")]
|
|
public int RetryTimeout { get; set; } = 60000;
|
|
|
|
/// <summary>
|
|
/// 是否启动时执行一次
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "是否启动时执行一次")]
|
|
public bool RunOnStart { get; set; } = false;
|
|
}
|