mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-10 16:12:50 +00:00
fix bull task and entityRenderPage
This commit is contained in:
parent
fb46db45d3
commit
d5a268b56a
@ -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",
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user