新增onServerReadyOnce事件,cluster模式下只触发一次,初始化任务事件改为onServerReadyOnce

This commit is contained in:
COOL 2025-06-20 11:50:51 +08:00
parent c44087ee96
commit 811ce8968e
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.6",
"@cool-midway/rpc": "8.0.1",
"@cool-midway/task": "8.0.2",
"@cool-midway/core": "^8.0.7",
"@cool-midway/rpc": "^8.0.1",
"@cool-midway/task": "^8.0.2",
"@midwayjs/bootstrap": "^3.20.3",
"@midwayjs/cache-manager": "^3.20.3",
"@midwayjs/core": "^3.20.3",

View File

@ -15,7 +15,7 @@ export class TaskCommEvent {
taskLocalService: TaskLocalService;
@Event('onServerReadyOnce')
async onServerReadyOnce() {
async onServerReady() {
this.taskInfoService.initTask();
}