From 936167972fe83e519bc01a0dd961d9c0635d24ab Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 9 Jun 2025 11:14:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=AB=99=E7=82=B9?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E5=AE=9A=E6=97=B6=E5=99=A8=E5=A4=9A=E6=AC=A1?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/certd-server/src/modules/cron/cron.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/ui/certd-server/src/modules/cron/cron.ts b/packages/ui/certd-server/src/modules/cron/cron.ts index 681f433e..fc237327 100644 --- a/packages/ui/certd-server/src/modules/cron/cron.ts +++ b/packages/ui/certd-server/src/modules/cron/cron.ts @@ -85,6 +85,8 @@ export class Cron { } this.logger.info(`[cron] register cron : [${req.name}] ,${req.cron}`); + this.remove(req.name) + const task = new CronTask(req, this.logger); this.queue.push(task); this.logger.info('当前定时任务数量:', this.getTaskSize());