tasktui 1.0.22 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants.d.ts +2 -1
- package/dist/constants.js +2 -1
- package/dist/tasks.js +2 -1
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
package/dist/tasks.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import childProcess from 'node:child_process';
|
|
2
|
+
import { CLEANUP_TIMEOUT } from './constants.js';
|
|
2
3
|
import { showError } from './renderer.js';
|
|
3
4
|
import { ensureError } from './utils.js';
|
|
4
5
|
export function ensureDependencies(task, deps, state) {
|
|
@@ -90,7 +91,7 @@ export async function cleanup(state) {
|
|
|
90
91
|
proc.on('close', resolve);
|
|
91
92
|
proc.kill('SIGTERM');
|
|
92
93
|
}));
|
|
93
|
-
const timeout = new Promise((resolve) => setTimeout(() => resolve('timeout'),
|
|
94
|
+
const timeout = new Promise((resolve) => setTimeout(() => resolve('timeout'), CLEANUP_TIMEOUT));
|
|
94
95
|
const result = await Promise.race([
|
|
95
96
|
Promise.all(exitPromises).then(() => 'done'),
|
|
96
97
|
timeout,
|