From d5a84c0d9c7e5f64f1ee23164e6759682eb8f302 Mon Sep 17 00:00:00 2001 From: mahao Date: Wed, 16 Aug 2023 16:56:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=BF=83=E8=B7=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/SettleAccount.Application/Entities/BQ/JobHostdService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/JobHostdService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/JobHostdService.cs index 2bf2b953..0fa87108 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/JobHostdService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/JobHostdService.cs @@ -98,6 +98,7 @@ public class JobHostdService : BackgroundService, IApplicationService try { timer.Elapsed += (s, e) => JobItemHeartBeat(job.Id); + timer.Start(); scope.ServiceProvider.GetRequiredService>().Clients.All.ServerToClient("JobItem", "refresh", ""); await jobService.Invoke(scope.ServiceProvider).ConfigureAwait(false); this.JobItemSuccess(job.Id, jobLogId.Value);