@sentio/runtime 2.59.0-rc.26 → 2.59.0-rc.28
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/index.js
CHANGED
package/lib/processor-runner.js
CHANGED
package/lib/service-worker.js
CHANGED
package/package.json
CHANGED
package/src/service.ts
CHANGED
@@ -424,7 +424,7 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
424
424
|
let lastBinding: DataBinding | undefined = undefined
|
425
425
|
for await (const request of requests) {
|
426
426
|
try {
|
427
|
-
|
427
|
+
console.log('received request:', request, 'lastBinding:', lastBinding)
|
428
428
|
if (request.binding) {
|
429
429
|
process_binding_count.add(1)
|
430
430
|
|
@@ -440,10 +440,11 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
440
440
|
lastBinding = request.binding
|
441
441
|
|
442
442
|
if (this.enablePartition) {
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
443
|
+
PluginManager.INSTANCE.partition(request.binding).then((partitions) => {
|
444
|
+
subject.next({
|
445
|
+
processId: request.processId,
|
446
|
+
partitions
|
447
|
+
})
|
447
448
|
})
|
448
449
|
} else {
|
449
450
|
this.startProcess(request.processId, request.binding, contexts, subject)
|
@@ -472,6 +473,7 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
472
473
|
console.error('unexpect error during handle loop', e)
|
473
474
|
}
|
474
475
|
}
|
476
|
+
console.info('process stream requests finished')
|
475
477
|
}
|
476
478
|
|
477
479
|
private startProcess(
|
@@ -493,7 +495,7 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
493
495
|
recordRuntimeInfo(result, binding.handlerType)
|
494
496
|
})
|
495
497
|
.catch((e) => {
|
496
|
-
console.
|
498
|
+
console.error(e)
|
497
499
|
dbContext.error(processId, e)
|
498
500
|
process_binding_error.add(1)
|
499
501
|
})
|