wangxinhui
2024-11-06 8f392cc88b0768b74efca3b68785cf5aa1c38e70
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using Quartz;
using System;
using System.Threading.Tasks;
using WIDESEA_Common.Tools;
using WIDESEA_WCS.Jobs;
using WIDESEA_WCS.SchedulerExecute.AGV;
 
namespace WIDESEA_WCS
{
    [DisallowConcurrentExecution]
    public class heartbeatZJGFJob : JobBase, IJob
    {
        public Task Execute(IJobExecutionContext context)
        {
            try
            {
                var executeLog = ExecuteJob(context, () => Run(context));
            }
            catch (Exception)
            {
 
            }
            return Task.FromResult(string.Empty);
        }
        public string Run(IJobExecutionContext context)
        {
            try
            {
                heartbeatZJGF.heartbeatWork();//正极辊分设备与AGV交互
            }
            catch (Exception) { }
            return "";
        }
    }
}