// 大名科技(天津)有限公司版权所有 电话:18020030720 QQ:515096995 // // 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证 namespace Admin.NET.Core; /// /// 系统作业触发器表 /// [SugarTable(null, "系统作业触发器表")] [SysTable] public class SysJobTrigger : EntityBaseId { /// /// 触发器Id /// [SugarColumn(ColumnDescription = "触发器Id", Length = 64)] [Required, MaxLength(64)] public virtual string TriggerId { get; set; } /// /// 作业Id /// [SugarColumn(ColumnDescription = "作业Id", Length = 64)] [Required, MaxLength(64)] public virtual string JobId { get; set; } /// /// 触发器类型FullName /// [SugarColumn(ColumnDescription = "触发器类型", Length = 128)] [MaxLength(128)] public string? TriggerType { get; set; } /// /// 程序集Name /// [SugarColumn(ColumnDescription = "程序集", Length = 128)] [MaxLength(128)] public string? AssemblyName { get; set; } = "Furion.Pure"; /// /// 参数 /// [SugarColumn(ColumnDescription = "参数", Length = 128)] [MaxLength(128)] public string? Args { get; set; } /// /// 描述信息 /// [SugarColumn(ColumnDescription = "描述信息", Length = 128)] [MaxLength(128)] public string? Description { get; set; } /// /// 状态 /// [SugarColumn(ColumnDescription = "状态")] public TriggerStatus Status { get; set; } = TriggerStatus.Ready; /// /// 起始时间 /// [SugarColumn(ColumnDescription = "起始时间")] public DateTime? StartTime { get; set; } /// /// 结束时间 /// [SugarColumn(ColumnDescription = "结束时间")] public DateTime? EndTime { get; set; } /// /// 最近运行时间 /// [SugarColumn(ColumnDescription = "最近运行时间")] public DateTime? LastRunTime { get; set; } /// /// 下一次运行时间 /// [SugarColumn(ColumnDescription = "下一次运行时间")] public DateTime? NextRunTime { get; set; } /// /// 触发次数 /// [SugarColumn(ColumnDescription = "触发次数")] public long NumberOfRuns { get; set; } /// /// 最大触发次数(0:不限制,n:N次) /// [SugarColumn(ColumnDescription = "最大触发次数")] public long MaxNumberOfRuns { get; set; } /// /// 出错次数 /// [SugarColumn(ColumnDescription = "出错次数")] public long NumberOfErrors { get; set; } /// /// 最大出错次数(0:不限制,n:N次) /// [SugarColumn(ColumnDescription = "最大出错次数")] public long MaxNumberOfErrors { get; set; } /// /// 重试次数 /// [SugarColumn(ColumnDescription = "重试次数")] public int NumRetries { get; set; } /// /// 重试间隔时间(ms) /// [SugarColumn(ColumnDescription = "重试间隔时间(ms)")] public int RetryTimeout { get; set; } = 1000; /// /// 是否立即启动 /// [SugarColumn(ColumnDescription = "是否立即启动")] public bool StartNow { get; set; } = true; /// /// 是否启动时执行一次 /// [SugarColumn(ColumnDescription = "是否启动时执行一次")] public bool RunOnStart { get; set; } = false; /// /// 是否在启动时重置最大触发次数等于一次的作业 /// [SugarColumn(ColumnDescription = "是否重置触发次数")] public bool ResetOnlyOnce { get; set; } = true; /// /// 更新时间 /// [SugarColumn(ColumnDescription = "更新时间")] public DateTime? UpdatedTime { get; set; } }