@sentio/runtime 2.60.0-rc.11 → 2.60.0-rc.13
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/{chunk-CYS2DAE4.js → chunk-26X74ASV.js} +2 -2
- package/lib/{chunk-BOHR42T4.js → chunk-2JZQGMEZ.js} +3 -2
- package/lib/{chunk-BOHR42T4.js.map → chunk-2JZQGMEZ.js.map} +1 -1
- package/lib/{chunk-TC6OWLVA.js → chunk-ZTW66EYL.js} +2 -1
- package/lib/chunk-ZTW66EYL.js.map +1 -0
- package/lib/index.d.ts +10 -147
- package/lib/index.js +2 -2
- package/lib/processor-BDXlufg5.d.ts +900 -0
- package/lib/processor-runner.js +10 -3
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +3 -3
- package/lib/test-processor.test.d.ts +14 -1
- package/lib/test-processor.test.js.map +1 -1
- package/package.json +1 -1
- package/src/db-context.ts +1 -0
- package/src/gen/service/common/protos/common.ts +134 -1
- package/src/service-v3.ts +7 -1
- package/lib/chunk-TC6OWLVA.js.map +0 -1
- /package/lib/{chunk-CYS2DAE4.js.map → chunk-26X74ASV.js.map} +0 -0
package/lib/processor-runner.js
CHANGED
@@ -5,7 +5,7 @@ import {
|
|
5
5
|
} from "./chunk-6XHWJ2VS.js";
|
6
6
|
import {
|
7
7
|
setupLogger
|
8
|
-
} from "./chunk-
|
8
|
+
} from "./chunk-26X74ASV.js";
|
9
9
|
import {
|
10
10
|
DataBindingContext,
|
11
11
|
DiagConsoleLogger,
|
@@ -50,7 +50,7 @@ import {
|
|
50
50
|
require_src,
|
51
51
|
trace,
|
52
52
|
withAbort
|
53
|
-
} from "./chunk-
|
53
|
+
} from "./chunk-2JZQGMEZ.js";
|
54
54
|
import {
|
55
55
|
ExecutionConfig,
|
56
56
|
HandlerType,
|
@@ -68,7 +68,7 @@ import {
|
|
68
68
|
__toCommonJS,
|
69
69
|
__toESM,
|
70
70
|
require_minimal2 as require_minimal
|
71
|
-
} from "./chunk-
|
71
|
+
} from "./chunk-ZTW66EYL.js";
|
72
72
|
|
73
73
|
// ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.25.1/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js
|
74
74
|
// @__NO_SIDE_EFFECTS__
|
@@ -26535,6 +26535,7 @@ var ProcessorServiceImplV3 = class {
|
|
26535
26535
|
}
|
26536
26536
|
if (this.enablePartition) {
|
26537
26537
|
try {
|
26538
|
+
console.debug(`sending partition request for processId ${request3.processId}`, request3.binding);
|
26538
26539
|
const partitions = await PluginManager.INSTANCE.partition(request3.binding);
|
26539
26540
|
subject.next({
|
26540
26541
|
processId: request3.processId,
|
@@ -26569,8 +26570,11 @@ var ProcessorServiceImplV3 = class {
|
|
26569
26570
|
startProcess(processId, binding, subject) {
|
26570
26571
|
const context2 = this.contexts.new(processId, subject);
|
26571
26572
|
const start = Date.now();
|
26573
|
+
console.debug("process binding", processId);
|
26572
26574
|
PluginManager.INSTANCE.processBinding(binding, void 0, context2).then(async (result) => {
|
26575
|
+
console.debug(`process binding ${processId} done`);
|
26573
26576
|
await context2.awaitPendings();
|
26577
|
+
console.debug("sending ts data length:", result.timeseriesResult.length);
|
26574
26578
|
for (const ts of result.timeseriesResult) {
|
26575
26579
|
subject.next({
|
26576
26580
|
processId,
|
@@ -26580,6 +26584,7 @@ var ProcessorServiceImplV3 = class {
|
|
26580
26584
|
});
|
26581
26585
|
}
|
26582
26586
|
if (result.states?.configUpdated) {
|
26587
|
+
console.debug("sending tpl updates:");
|
26583
26588
|
subject.next({
|
26584
26589
|
processId,
|
26585
26590
|
tplRequest: {
|
@@ -26587,6 +26592,7 @@ var ProcessorServiceImplV3 = class {
|
|
26587
26592
|
}
|
26588
26593
|
});
|
26589
26594
|
}
|
26595
|
+
console.debug("sending binding result", processId);
|
26590
26596
|
subject.next({
|
26591
26597
|
result: {
|
26592
26598
|
states: result.states,
|
@@ -26603,6 +26609,7 @@ var ProcessorServiceImplV3 = class {
|
|
26603
26609
|
const cost = Date.now() - start;
|
26604
26610
|
process_binding_time.add(cost);
|
26605
26611
|
this.contexts.delete(processId);
|
26612
|
+
console.debug("process binding done", processId);
|
26606
26613
|
});
|
26607
26614
|
}
|
26608
26615
|
async configureHandlers(request3, context2) {
|