TG.WXCRM.V4/WeChatServerServices/WxJob/Wx_AliveRedisJob.cs

34 lines
847 B
C#

using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WeChatServerServices.WxJob
{
public class Wx_AliveRedisJob : IJob
{
static bool isRuning = false;
public void Execute(JobExecutionContext context)
{
if (isRuning)
return;
isRuning = true;
try
{
WX.CRM.Common.LogHelper.Info("==Wx_AliveRedisJob执行====");
new Wx_AliveRedisToOracle().Start();
}
catch (Exception e)
{
WX.CRM.Common.LogHelper.Error(string.Concat("Wx_AliveRedisJob出现错误", e.ToString()));
}
finally
{
isRuning = false;
}
}
}
}