From d5a268b56a493b7de7d338e9886d223d63597ce9 Mon Sep 17 00:00:00 2001 From: xiaopeng Date: Thu, 27 Feb 2025 21:24:35 +0800 Subject: [PATCH] fix bull task and entityRenderPage --- package.json | 6 +++--- src/modules/task/service/bull.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index cf3667c..24c2721 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "description": "一个很酷的Ai快速开发框架", "private": true, "dependencies": { - "@cool-midway/core": "8.0.0", - "@cool-midway/rpc": "8.0.0", - "@cool-midway/task": "8.0.0", + "@cool-midway/core": "8.0.1", + "@cool-midway/rpc": "8.0.1", + "@cool-midway/task": "8.0.1", "@midwayjs/bootstrap": "^3.20.0", "@midwayjs/cache-manager": "^3.20.0", "@midwayjs/core": "^3.20.0", diff --git a/src/modules/task/service/bull.ts b/src/modules/task/service/bull.ts index acf386f..0629141 100644 --- a/src/modules/task/service/bull.ts +++ b/src/modules/task/service/bull.ts @@ -233,7 +233,7 @@ export class TaskBullService extends BaseService { const runningTasks = await this.taskInfoEntity.findBy({ status: 1 }); if (!_.isEmpty(runningTasks)) { for (const task of runningTasks) { - const job = await this.exist(task.id); // 任务已存在就不添加 + const job = await this.exist(task.jobId); // 任务已存在就不添加 if (!job) { this.logger.info(`init task ${task.name}`); await this.addOrUpdate(task);