@mu-crew/mu 3.5.0 → 3.6.0
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/cli.js +9 -8
- package/dist/cli.js.map +1 -1
- package/dist/extension/mu-pi.js +65 -1
- package/dist/extension/mu-pi.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/docs/guide/dispatch.md +2 -1
- package/docs/guide/getting-started.md +8 -3
- package/docs/reference/env.md +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5541,6 +5541,7 @@ async function claimSelf(db, localId, opts) {
|
|
|
5541
5541
|
// src/tasks/wait.ts
|
|
5542
5542
|
var currentWaitSleep = (ms) => new Promise((resolve7) => setTimeout(resolve7, ms));
|
|
5543
5543
|
var pollCount = 0;
|
|
5544
|
+
var DEFAULT_STUCK_AFTER_MS = 12e4;
|
|
5544
5545
|
var defaultStuckWarn = (msg) => {
|
|
5545
5546
|
process.stderr.write(msg);
|
|
5546
5547
|
};
|
|
@@ -5586,7 +5587,7 @@ async function waitForTasks(db, input, opts) {
|
|
|
5586
5587
|
const wantAny = opts.any === true;
|
|
5587
5588
|
const timeoutMs = opts.timeoutMs ?? 6e5;
|
|
5588
5589
|
const pollMs = opts.pollMs ?? 1e3;
|
|
5589
|
-
const stuckAfterMs = opts.stuckAfterMs ??
|
|
5590
|
+
const stuckAfterMs = opts.stuckAfterMs ?? DEFAULT_STUCK_AFTER_MS;
|
|
5590
5591
|
const onStall = opts.onStall ?? "warn";
|
|
5591
5592
|
const deadline = timeoutMs > 0 ? Date.now() + timeoutMs : Number.POSITIVE_INFINITY;
|
|
5592
5593
|
for (const ref of refs) {
|