From 18a1a6faf82b1ad00d27f6fc7f5734c34aea32df Mon Sep 17 00:00:00 2001 From: tangxu <tangxu76880903> Date: 星期五, 07 六月 2024 15:30:23 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/IStation/shys/ChEqCalc.V1.3 --- WaterPredict/IStation.ChEr.WebApi.Predict/任务/PredictCronJobHelper.cs | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git "a/WaterPredict/IStation.ChEr.WebApi.Predict/\344\273\273\345\212\241/PredictCronJobHelper.cs" "b/WaterPredict/IStation.ChEr.WebApi.Predict/\344\273\273\345\212\241/PredictCronJobHelper.cs" index 8d5e2e7..c57725d 100644 --- "a/WaterPredict/IStation.ChEr.WebApi.Predict/\344\273\273\345\212\241/PredictCronJobHelper.cs" +++ "b/WaterPredict/IStation.ChEr.WebApi.Predict/\344\273\273\345\212\241/PredictCronJobHelper.cs" @@ -36,16 +36,16 @@ // 4.鍒涘缓Trigger var trigger = TriggerBuilder.Create() .WithIdentity(_triggerName, _jobGroup) - .WithCronSchedule("0 33 0/1 * * ? ")//"0 32 0/1 * * ? " + .WithCronSchedule("0 05 0/1 * * ? ")//"0 32 0/1 * * ? " .Build(); - /* //4.鍒涘缓Trigger - var trigger = TriggerBuilder.Create() - .WithIdentity(_triggerName, _jobGroup) - .WithSimpleSchedule(x => x.WithIntervalInSeconds(2) - .RepeatForever().WithMisfireHandlingInstructionNextWithRemainingCount()) - .Build(); -*/ + /* //4.鍒涘缓Trigger + var trigger = TriggerBuilder.Create() + .WithIdentity(_triggerName, _jobGroup) + .WithSimpleSchedule(x => x.WithIntervalInSeconds(10) + .RepeatForever().WithMisfireHandlingInstructionNextWithRemainingCount()) + .Build();*/ + //5.鍔犲叆璋冨害绠$悊鍣� await _sched.ScheduleJob(job, trigger); } -- Gitblit v1.9.3