Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2025-03-23 02:11:54 +00:00
commit 1036a1fb70
2 changed files with 2 additions and 1 deletions

View File

@ -305,7 +305,7 @@ export class AppSupervisor extends EventEmitter implements AsyncEmitter {
}
});
app.on('afterStop', async () => {
app.on('__stopped', async () => {
this.setAppStatus(app.name, 'stopped');
});

View File

@ -955,6 +955,7 @@ export class Application<StateT = DefaultState, ContextT = DefaultContext> exten
}
await this.emitAsync('afterStop', this, options);
this.emit('__stopped', this, options);
this.stopped = true;
log.info(`app has stopped`, { method: 'stop' });