@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/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 ?? 3e5;
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) {