Skip to content

Commit

Permalink
Merge pull request #55 from fleetbase/dev-v0.2.20
Browse files Browse the repository at this point in the history
v0.2.20 - increase engine booting timeout to 40s
  • Loading branch information
roncodes authored Oct 3, 2024
2 parents a0781b5 + 4b6adca commit b4dabd6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions addon/services/universe.js
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ export default class UniverseService extends Service.extend(Evented) {
clearInterval(intervalId);
reject(new Error('Timeout: Universe was unable to boot engines'));
},
5000
1000 * 40
);
});
}
Expand Down Expand Up @@ -1867,8 +1867,9 @@ export default class UniverseService extends Service.extend(Evented) {
await tryBootEngine(extension);
}

this.runBootCallbacks(owner);
this.enginesBooted = true;
this.runBootCallbacks(owner, () => {
this.enginesBooted = true;
});
});
}

Expand Down Expand Up @@ -1953,8 +1954,9 @@ export default class UniverseService extends Service.extend(Evented) {
await tryBootEngine(extension);
}

this.runBootCallbacks(owner);
this.enginesBooted = true;
this.runBootCallbacks(owner, () => {
this.enginesBooted = true;
});
});
}

Expand Down Expand Up @@ -2004,7 +2006,11 @@ export default class UniverseService extends Service.extend(Evented) {
for (let i = 0; i < this.bootCallbacks.length; i++) {
const callback = this.bootCallbacks[i];
if (typeof callback === 'function') {
callback(this, appInstance);
try {
callback(this, appInstance);
} catch (error) {
debug(`Engine Boot Callback Error: ${error.message}`);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/ember-core",
"version": "0.2.19",
"version": "0.2.20",
"description": "Provides all the core services, decorators and utilities for building a Fleetbase extension for the Console.",
"keywords": [
"fleetbase-core",
Expand Down

0 comments on commit b4dabd6

Please sign in to comment.