Skip to content

Commit

Permalink
Start scheduler after apps have been loaded (#23566)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gubert authored Nov 1, 2021
1 parent 7af515f commit b092bef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/apps/server/bridges/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export class AppSchedulerBridge extends SchedulerBridge {
}
}

private async startScheduler(): Promise<void> {
public async startScheduler(): Promise<void> {
if (!this.isConnected) {
await this.scheduler.start();
this.isConnected = true;
Expand Down
3 changes: 2 additions & 1 deletion app/apps/server/orchestrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ export class AppServerOrchestrator {

return this._manager.load()
.then((affs) => console.log(`Loaded the Apps Framework and loaded a total of ${ affs.length } Apps!`))
.catch((err) => console.warn('Failed to load the Apps Framework and Apps!', err));
.catch((err) => console.warn('Failed to load the Apps Framework and Apps!', err))
.then(() => this.getBridges().getSchedulerBridge().startScheduler());
}

async unload() {
Expand Down

0 comments on commit b092bef

Please sign in to comment.