2024-01-13 16:17:48 +08:00
|
|
|
|
using Yi.Framework.Rbac.Domain.Shared.Enums;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Task
|
2023-04-23 21:42:03 +08:00
|
|
|
|
{
|
|
|
|
|
|
public class TaskGetOutput
|
|
|
|
|
|
{
|
2023-04-25 10:38:51 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 作业 Id
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
2024-01-12 17:18:39 +08:00
|
|
|
|
public string JobId { get; set; }
|
2023-04-25 10:38:51 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 作业组名称
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
2024-01-12 17:18:39 +08:00
|
|
|
|
public string GroupName { get; set; }
|
2023-04-25 10:38:51 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 作业处理程序类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>存储的是类型的 FullName</remarks>
|
|
|
|
|
|
|
2024-01-12 17:18:39 +08:00
|
|
|
|
public string JobType { get; set; }
|
2023-04-25 10:38:51 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 作业处理程序类型所在程序集
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>存储的是程序集 Name</remarks>
|
|
|
|
|
|
|
2024-01-12 17:18:39 +08:00
|
|
|
|
public string AssemblyName { get; set; }
|
2023-04-25 10:38:51 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 描述信息
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
2024-01-12 17:18:39 +08:00
|
|
|
|
public string Description { get; set; }
|
2023-04-25 10:38:51 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否采用并行执行
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>如果设置为 false,那么使用串行执行</remarks>
|
|
|
|
|
|
|
2024-01-12 17:18:39 +08:00
|
|
|
|
public bool Concurrent { get; set; } = true;
|
2023-04-25 10:38:51 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否扫描 IJob 实现类 [Trigger] 特性触发器
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
2024-01-12 17:18:39 +08:00
|
|
|
|
public bool IncludeAnnotations { get; set; } = false;
|
2023-04-25 10:38:51 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 作业信息额外数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
2024-01-12 17:18:39 +08:00
|
|
|
|
public string Properties { get; set; } = "{}";
|
2023-04-25 10:38:51 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 作业更新时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
2024-01-12 17:18:39 +08:00
|
|
|
|
public DateTime? UpdatedTime { get; set; }
|
|
|
|
|
|
|
2023-04-25 13:30:54 +08:00
|
|
|
|
|
|
|
|
|
|
public string TriggerArgs { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public DateTime? NextRunTime { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public DateTime? LastRunTime { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public long NumberOfRuns { get; set; }
|
2024-01-13 16:17:48 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 状态
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Status { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 触发器类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public JobTypeEnum Type { get; set; }
|
2024-01-13 16:44:39 +08:00
|
|
|
|
|
|
|
|
|
|
public string? Cron { get; set; }
|
|
|
|
|
|
public double? Millisecond { get; set; }
|
2023-04-23 21:42:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|