@remnic/core 10.0.75 → 10.0.76
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-cli.js +1 -1
- package/dist/{chunk-VYOAYFDV.js → chunk-HR6NTVYZ.js} +5 -20
- package/dist/{chunk-VYOAYFDV.js.map → chunk-HR6NTVYZ.js.map} +1 -1
- package/dist/{chunk-URS56HGW.js → chunk-TD5VTVPT.js} +2 -2
- 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 +4 -9
- package/dist/orchestration/extraction-queue-coordinator.d.ts.map +1 -1
- package/dist/orchestrator.js +1 -1
- package/package.json +2 -2
- package/src/orchestration/extraction-queue-coordinator.ts +4 -19
- package/src/orchestrator-extraction-queue.test.ts +70 -13
- /package/dist/{chunk-URS56HGW.js.map → chunk-TD5VTVPT.js.map} +0 -0
package/dist/access-cli.js
CHANGED
|
@@ -1119,29 +1119,14 @@ var ExtractionQueueCoordinator = class {
|
|
|
1119
1119
|
return this.concurrency;
|
|
1120
1120
|
}
|
|
1121
1121
|
/**
|
|
1122
|
-
* Enqueue a task and start the processor when capacity is free.
|
|
1123
|
-
*
|
|
1124
|
-
*
|
|
1125
|
-
*
|
|
1126
|
-
* Per-key coalescing: a queued-not-started task for key K is superseded by
|
|
1127
|
-
* a newer enqueue for K instead of stacking another full turn snapshot
|
|
1128
|
-
* behind it (extraction reads live state at run time, so the newest
|
|
1129
|
-
* closure is the authoritative one). Keyless tasks are independent work
|
|
1130
|
-
* and never coalesce.
|
|
1122
|
+
* Enqueue a task and start the processor when capacity is free. Each task
|
|
1123
|
+
* keeps its own captured work and settlement; keyed tasks serialize behind
|
|
1124
|
+
* other tasks for that key. A front task may jump the queue but does not
|
|
1125
|
+
* discard queued work.
|
|
1131
1126
|
*/
|
|
1132
1127
|
enqueue(task, options) {
|
|
1133
1128
|
if (!this.accepting) return false;
|
|
1134
1129
|
const key = options?.key;
|
|
1135
|
-
if (key !== void 0) {
|
|
1136
|
-
const queuedAt = this.queue.findIndex((entry2) => entry2.key === key);
|
|
1137
|
-
if (!options?.front && queuedAt >= 0) {
|
|
1138
|
-
this.queue[queuedAt] = { run: task, key };
|
|
1139
|
-
return true;
|
|
1140
|
-
}
|
|
1141
|
-
if (options?.front && queuedAt >= 0) {
|
|
1142
|
-
this.queue.splice(queuedAt, 1);
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
1130
|
const entry = { run: task, key };
|
|
1146
1131
|
if (options?.front) {
|
|
1147
1132
|
this.preemptRunning(options.key);
|
|
@@ -32100,4 +32085,4 @@ export {
|
|
|
32100
32085
|
qmdStartupCollectionChecksWithTimeout,
|
|
32101
32086
|
Orchestrator
|
|
32102
32087
|
};
|
|
32103
|
-
//# sourceMappingURL=chunk-
|
|
32088
|
+
//# sourceMappingURL=chunk-HR6NTVYZ.js.map
|