@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.
@@ -59631,6 +59631,7 @@ var ProcessorServiceImpl = class {
59631
59631
  let lastBinding = void 0;
59632
59632
  for await (const request of requests) {
59633
59633
  try {
59634
+ console.log("received request:", request, "lastBinding:", lastBinding);
59634
59635
  if (request.binding) {
59635
59636
  process_binding_count.add(1);
59636
59637
  if (request.binding.handlerType === HandlerType.UNKNOWN) {
@@ -59653,7 +59654,9 @@ var ProcessorServiceImpl = class {
59653
59654
  }
59654
59655
  if (request.start) {
59655
59656
  if (!lastBinding) {
59656
- throw new import_nice_grpc.ServerError(import_nice_grpc.Status.INVALID_ARGUMENT, "start request received without binding");
59657
+ console.error("start request received without binding");
59658
+ subject.error(new Error("start request received without binding"));
59659
+ continue;
59657
59660
  }
59658
59661
  this.startProcess(request.processId, lastBinding, contexts, subject);
59659
59662
  }
@@ -59669,6 +59672,7 @@ var ProcessorServiceImpl = class {
59669
59672
  console.error("unexpect error during handle loop", e);
59670
59673
  }
59671
59674
  }
59675
+ console.info("process stream requests finished");
59672
59676
  }
59673
59677
  startProcess(processId, binding, contexts, subject) {
59674
59678
  const dbContext = contexts.new(processId, subject);
@@ -59681,7 +59685,7 @@ var ProcessorServiceImpl = class {
59681
59685
  });
59682
59686
  recordRuntimeInfo(result, binding.handlerType);
59683
59687
  }).catch((e) => {
59684
- console.debug(e);
59688
+ console.error(e);
59685
59689
  dbContext.error(processId, e);
59686
59690
  process_binding_error.add(1);
59687
59691
  }).finally(() => {
@@ -59855,4 +59859,4 @@ long/umd/index.js:
59855
59859
  @noble/curves/esm/secp256k1.js:
59856
59860
  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
59857
59861
  */
59858
- //# sourceMappingURL=chunk-3G5TU64H.js.map
59862
+ //# sourceMappingURL=chunk-MKMFMWQ4.js.map