Blame view

sys/sys_JOB/Quartz.Job/Job/AgvJob.cs 727 Bytes
赖素文 authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Threading.Tasks;
using Hh.Mes.Service.QuartzJobService;

namespace Quartz.Job
{
    /// <summary>
    /// 命名空间Quartz.Job 保持一致
    /// </summary>
    [PersistJobDataAfterExecution]
    [DisallowConcurrentExecution]
    public class AgvJob : IJob
    {
        public Task Execute(IJobExecutionContext context)
        {
            JobContainer jobContainer = null;
            try
            {
赖素文 authored
19
赖素文 authored
20
21
22
23
24
25
26
27
28
29
30
            }
            catch (Exception ex)
            {
                jobContainer.ExceptionInfo = ex.Message;
                jobContainer.LoggerJob();
            }
            jobContainer.UpdateJob();
            return Task.CompletedTask;
        }
    }
}