| | |
| | | /// </summary> |
| | | public class TigerJobBase |
| | | { |
| | | public static Schedule Schedule; |
| | | public static TSK_JOB Job = new TSK_JOB(); |
| | | public static TSK_TRIG Trig = new TSK_TRIG(); |
| | | public static TrigArgs Args = new TrigArgs(); |
| | | public Schedule Schedule; |
| | | public TSK_JOB Job = new TSK_JOB(); |
| | | public TSK_TRIG Trig = new TSK_TRIG(); |
| | | public TrigArgs Args = new TrigArgs(); |
| | | /// <summary> |
| | | /// 开始时间 |
| | | /// </summary> |
| | |
| | | /// <param name="JobName"></param> |
| | | /// <param name="remark"></param> |
| | | /// <returns></returns> |
| | | public static ApiAction SaveFluentSchedulerLog(string status, string remark) |
| | | public ApiAction SaveFluentSchedulerLog(string status, string remark) |
| | | { |
| | | ApiAction action = new ApiAction(); |
| | | if (Trig != null) |
| | |
| | | /// <summary> |
| | | /// 获取任务 |
| | | /// </summary> |
| | | public static void GetJob(string jobType) |
| | | public void GetJob(string jobType) |
| | | { |
| | | Job = Biz.Db.Queryable<TSK_JOB>().Where(q => q.JobType == jobType).IncludesAllFirstLayer().First(); |
| | | Args = JsonConvert.DeserializeObject<TrigArgs>(Job.Triggers[0].Args); |
| | |
| | | /// 判断时间,返回是否可以继续工作任务 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public static TskJobInput CheckIFCanGo() |
| | | public TskJobInput CheckIFCanGo() |
| | | { |
| | | TskJobInput tskJobInput = new TskJobInput(); |
| | | var dateTime = DateTime.Now; |