Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.2.20 - increase engine booting timeout to 40s #55

Merged
merged 3 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading