fix bull task and entityRenderPage

This commit is contained in:
xiaopeng 2025-02-27 21:24:35 +08:00
parent fb46db45d3
commit d5a268b56a
2 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

@ -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);