@sentio/runtime 2.59.0-rc.25 → 2.59.0-rc.27
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
|
|
@@ -452,7 +452,9 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
452
452
|
|
453
453
|
if (request.start) {
|
454
454
|
if (!lastBinding) {
|
455
|
-
|
455
|
+
console.error('start request received without binding')
|
456
|
+
subject.error(new Error('start request received without binding'))
|
457
|
+
continue
|
456
458
|
}
|
457
459
|
this.startProcess(request.processId, lastBinding, contexts, subject)
|
458
460
|
}
|
@@ -470,6 +472,7 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
470
472
|
console.error('unexpect error during handle loop', e)
|
471
473
|
}
|
472
474
|
}
|
475
|
+
console.info('process stream requests finished')
|
473
476
|
}
|
474
477
|
|
475
478
|
private startProcess(
|
@@ -491,7 +494,7 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
491
494
|
recordRuntimeInfo(result, binding.handlerType)
|
492
495
|
})
|
493
496
|
.catch((e) => {
|
494
|
-
console.
|
497
|
+
console.error(e)
|
495
498
|
dbContext.error(processId, e)
|
496
499
|
process_binding_error.add(1)
|
497
500
|
})
|