@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
@@ -28,7 +28,7 @@ import {
28
28
  providerMetrics,
29
29
  recordRuntimeInfo,
30
30
  timeoutError
31
- } from "./chunk-3G5TU64H.js";
31
+ } from "./chunk-MKMFMWQ4.js";
32
32
  import {
33
33
  Plugin,
34
34
  PluginManager
@@ -44,7 +44,7 @@ import {
44
44
  require_lodash,
45
45
  require_src,
46
46
  trace
47
- } from "./chunk-3G5TU64H.js";
47
+ } from "./chunk-MKMFMWQ4.js";
48
48
  import {
49
49
  ExecutionConfig,
50
50
  HandlerType,
@@ -10,7 +10,7 @@ import {
10
10
  recordRuntimeInfo,
11
11
  require_lib3 as require_lib,
12
12
  require_lib4 as require_lib2
13
- } from "./chunk-3G5TU64H.js";
13
+ } from "./chunk-MKMFMWQ4.js";
14
14
  import {
15
15
  PluginManager,
16
16
  ProcessConfigResponse,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
- "version": "2.59.0-rc.25",
3
+ "version": "2.59.0-rc.27",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
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
- // console.debug('received request:', request)
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
- throw new ServerError(Status.INVALID_ARGUMENT, 'start request received without binding')
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.debug(e)
497
+ console.error(e)
495
498
  dbContext.error(processId, e)
496
499
  process_binding_error.add(1)
497
500
  })