@wixc3/engine-core
Advanced tools
Comparing version 46.0.2 to 46.0.3
@@ -29,3 +29,13 @@ "use strict"; | ||
for (const feature of toDispose) { | ||
await (0, promise_assist_1.timeout)(feature.dispose(), this.featureShutdownTimeout, `Failed to dispose feature: ${feature.feature.id}`); | ||
const startTime = Date.now(); | ||
const intervalId = setInterval(() => { | ||
console.log(`[${this.entryEnvironment.env}]: Feature ${feature.feature.id} "dispose()" is taking ${((Date.now() - startTime) / | ||
1000).toFixed(2)}s`); | ||
}, 50); | ||
try { | ||
await (0, promise_assist_1.timeout)(feature.dispose(), this.featureShutdownTimeout, `Failed to dispose feature: ${feature.feature.id}`); | ||
} | ||
finally { | ||
clearInterval(intervalId); | ||
} | ||
} | ||
@@ -32,0 +42,0 @@ } |
{ | ||
"name": "@wixc3/engine-core", | ||
"version": "46.0.2", | ||
"version": "46.0.3", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -105,7 +105,20 @@ import { timeout } from 'promise-assist'; | ||
for (const feature of toDispose) { | ||
await timeout( | ||
feature.dispose(), | ||
this.featureShutdownTimeout, | ||
`Failed to dispose feature: ${feature.feature.id}`, | ||
); | ||
const startTime = Date.now(); | ||
const intervalId = setInterval(() => { | ||
console.log( | ||
`[${this.entryEnvironment.env}]: Feature ${feature.feature.id} "dispose()" is taking ${( | ||
(Date.now() - startTime) / | ||
1000 | ||
).toFixed(2)}s`, | ||
); | ||
}, 50); | ||
try { | ||
await timeout( | ||
feature.dispose(), | ||
this.featureShutdownTimeout, | ||
`Failed to dispose feature: ${feature.feature.id}`, | ||
); | ||
} finally { | ||
clearInterval(intervalId); | ||
} | ||
} | ||
@@ -112,0 +125,0 @@ } finally { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1365335
13533
2