@remnic/core 10.0.159 → 10.0.161
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/access-admin-ops-surface.js +1 -1
- package/dist/access-cli.js +1 -1
- package/dist/access-extraction-force-flush-preempt.js +1 -1
- package/dist/access-extraction-force-flush.js +1 -1
- package/dist/access-http-briefing.js +1 -1
- package/dist/access-http-query.js +1 -1
- package/dist/access-http.js +1 -1
- package/dist/access-identity-continuity-surface.js +1 -1
- package/dist/access-lcm-surface.js +1 -1
- package/dist/access-mcp.js +1 -1
- package/dist/access-observe-write-surface.js +1 -1
- package/dist/access-operations-batch.js +1 -1
- package/dist/access-operations.js +1 -1
- package/dist/access-recall-concurrency.js +1 -1
- package/dist/access-recall-response.js +1 -1
- package/dist/access-recall-surface.js +1 -1
- package/dist/access-service.js +1 -1
- package/dist/{chunk-3RHD5TF5.js → chunk-BFJQBCDL.js} +27 -6
- package/dist/chunk-BFJQBCDL.js.map +1 -0
- package/dist/{chunk-XC5BRK7J.js → chunk-M7BCA43N.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/explicit-capture.js +1 -1
- package/dist/index.js +1 -1
- package/dist/orchestration/backlog-scheduler.js +2 -2
- package/dist/orchestration/buffer-drain-runner.js +2 -2
- package/dist/orchestration/extraction-queue-coordinator.d.ts +11 -2
- package/dist/orchestration/extraction-queue-coordinator.d.ts.map +1 -1
- package/dist/orchestrator.js +1 -1
- package/dist/recall-navigation.js +1 -1
- package/package.json +2 -2
- package/src/orchestration/extraction-queue-coordinator.ts +29 -5
- package/src/orchestration/extraction-queue-drain-budget.test.ts +74 -0
- package/dist/chunk-3RHD5TF5.js.map +0 -1
- /package/dist/{chunk-XC5BRK7J.js.map → chunk-M7BCA43N.js.map} +0 -0
package/dist/access-cli.js
CHANGED
package/dist/access-http.js
CHANGED
package/dist/access-mcp.js
CHANGED
package/dist/access-service.js
CHANGED
|
@@ -4974,13 +4974,34 @@ var ExtractionQueueCoordinator = class {
|
|
|
4974
4974
|
resumeAccepting() {
|
|
4975
4975
|
this.accepting = true;
|
|
4976
4976
|
}
|
|
4977
|
-
/**
|
|
4978
|
-
|
|
4977
|
+
/**
|
|
4978
|
+
* Stop new producers and wait for all accepted work to finish. `timeoutMs`
|
|
4979
|
+
* is the nominal budget; `tailBudgetMs` bounds the grace wait past it so a
|
|
4980
|
+
* task that never settles cannot stall shutdown indefinitely. The flag is
|
|
4981
|
+
* honest: false when the tail expired with work outstanding, so the
|
|
4982
|
+
* caller's "did not drain" path is live. Callers persist buffered turns
|
|
4983
|
+
* before this drain runs, so an abandoned tail loses nothing durable.
|
|
4984
|
+
*/
|
|
4985
|
+
async pauseAndDrain(timeoutMs = 6e4, tailBudgetMs = 15e3) {
|
|
4979
4986
|
this.stopAccepting();
|
|
4987
|
+
const startedMs = Date.now();
|
|
4980
4988
|
if (await this.waitForIdle(timeoutMs)) return true;
|
|
4981
|
-
log.warn(
|
|
4982
|
-
|
|
4983
|
-
|
|
4989
|
+
log.warn(
|
|
4990
|
+
`extraction queue drain exceeded ${timeoutMs}ms; waiting up to ${tailBudgetMs}ms more for accepted work to settle (${this.describeOutstanding()})`
|
|
4991
|
+
);
|
|
4992
|
+
if (await this.waitForIdle(tailBudgetMs)) return true;
|
|
4993
|
+
log.warn(
|
|
4994
|
+
`extraction queue drain abandoned after ${Date.now() - startedMs}ms; ${this.describeOutstanding()} still outstanding`
|
|
4995
|
+
);
|
|
4996
|
+
return false;
|
|
4997
|
+
}
|
|
4998
|
+
/** Name what the drain is still waiting on, for timeout diagnostics. */
|
|
4999
|
+
describeOutstanding() {
|
|
5000
|
+
const names = [
|
|
5001
|
+
...[...this.preemptSlots.values()].map((s) => `in-flight '${s.key ?? "(unkeyed)"}'`),
|
|
5002
|
+
...this.queue.map((e) => `queued '${e.key ?? "(unkeyed)"}'`)
|
|
5003
|
+
];
|
|
5004
|
+
return names.length > 0 ? `outstanding: ${names.join(", ")}` : "outstanding: (none)";
|
|
4984
5005
|
}
|
|
4985
5006
|
/**
|
|
4986
5007
|
* Background queue processor. Runs up to `concurrency` tasks at a time,
|
|
@@ -67539,4 +67560,4 @@ export {
|
|
|
67539
67560
|
EngramAccessService,
|
|
67540
67561
|
AccessAdminOpsSurface
|
|
67541
67562
|
};
|
|
67542
|
-
//# sourceMappingURL=chunk-
|
|
67563
|
+
//# sourceMappingURL=chunk-BFJQBCDL.js.map
|