@sentio/runtime 2.60.0-rc.13 → 2.60.0-rc.14
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/lib/processor-runner.js +10 -2
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
- package/src/service-v3.ts +18 -2
package/lib/processor-runner.js
CHANGED
@@ -26509,6 +26509,15 @@ var ProcessorServiceImplV3 = class {
|
|
26509
26509
|
}
|
26510
26510
|
async *processBindingsStream(requests, context2) {
|
26511
26511
|
const subject = new import_rxjs.Subject();
|
26512
|
+
this.handleRequests(requests, subject).then(() => {
|
26513
|
+
subject.complete();
|
26514
|
+
}).catch((e) => {
|
26515
|
+
console.error(e);
|
26516
|
+
subject.error(e);
|
26517
|
+
});
|
26518
|
+
yield* from(subject).pipe(withAbort(context2.signal));
|
26519
|
+
}
|
26520
|
+
async handleRequests(requests, subject) {
|
26512
26521
|
let lastBinding = void 0;
|
26513
26522
|
for await (const request3 of requests) {
|
26514
26523
|
try {
|
@@ -26520,7 +26529,6 @@ var ProcessorServiceImplV3 = class {
|
|
26520
26529
|
console.error("unexpect error during handle loop", e);
|
26521
26530
|
}
|
26522
26531
|
}
|
26523
|
-
yield* from(subject).pipe(withAbort(context2.signal));
|
26524
26532
|
}
|
26525
26533
|
contexts = new Contexts2();
|
26526
26534
|
async handleRequest(request3, lastBinding, subject) {
|
@@ -26535,7 +26543,7 @@ var ProcessorServiceImplV3 = class {
|
|
26535
26543
|
}
|
26536
26544
|
if (this.enablePartition) {
|
26537
26545
|
try {
|
26538
|
-
console.debug(
|
26546
|
+
console.debug("sending partition request", request3.binding);
|
26539
26547
|
const partitions = await PluginManager.INSTANCE.partition(request3.binding);
|
26540
26548
|
subject.next({
|
26541
26549
|
processId: request3.processId,
|