update 定时任务计划相关
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Ewide.Core.Service;
|
||||
using Furion.TaskScheduler;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
@@ -19,12 +19,31 @@ namespace Ewide.Core
|
||||
[Comment("任务名称")]
|
||||
public string JobName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 只执行一次
|
||||
/// </summary>
|
||||
[Comment("只执行一次")]
|
||||
public bool DoOnce { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 任务分组
|
||||
/// </summary>
|
||||
/// <example>ewide</example>
|
||||
[Comment("任务分组")]
|
||||
public string JobGroup { get; set; }
|
||||
//[Comment("任务分组")]
|
||||
//public string JobGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 立即执行(默认等待启动)
|
||||
/// </summary>
|
||||
[Comment("立即执行")]
|
||||
public bool StartNow { get; set; } = false;
|
||||
|
||||
// <summary>
|
||||
/// 执行类型(并行、列队)
|
||||
/// </summary>
|
||||
[Comment("执行类型")]
|
||||
public SpareTimeExecuteTypes ExecuteType { get; set; } = SpareTimeExecuteTypes.Parallel;
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
@@ -63,8 +82,14 @@ namespace Ewide.Core
|
||||
/// <summary>
|
||||
/// 触发器类型
|
||||
/// </summary>
|
||||
[Comment("触发器类型")]
|
||||
public TriggerTypeEnum TriggerType { get; set; } = TriggerTypeEnum.Simple;
|
||||
//[Comment("触发器类型")]
|
||||
//public TriggerTypeEnum TriggerType { get; set; } = TriggerTypeEnum.Simple;
|
||||
|
||||
/// <summary>
|
||||
/// 定时器类型
|
||||
/// </summary>
|
||||
[Comment("定时器类型")]
|
||||
public SpareTimeTypes TimerType { get; set; } = SpareTimeTypes.Interval;
|
||||
|
||||
/// <summary>
|
||||
/// 请求url
|
||||
|
||||
Reference in New Issue
Block a user