@ariestools/cli 0.1.11 → 0.1.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.
@@ -409,19 +409,22 @@ let DappActor = class DappActor extends AbstractActor {
409
409
  await writeIndexerStatus(this._state, fields);
410
410
  }
411
411
  async runReducePass() {
412
+ const signal = this.signal;
412
413
  try {
413
414
  const result = await this.params.reducer.reduce({
414
415
  data: this._data,
415
416
  index: this._index,
416
417
  logger: this.logger,
417
- signal: this.signal,
418
+ signal,
418
419
  state: this._state
419
420
  });
421
+ if (signal.aborted) return;
420
422
  const progress = withDefaultGenerationRoot(result === void 0 ? void 0 : result);
421
423
  this._consecutiveFailures = 0;
422
424
  await this.safePublishStatus(progress);
423
425
  this.settleFirstPass();
424
426
  } catch (error) {
427
+ if (signal.aborted) return;
425
428
  const err = error instanceof Error ? error : new Error(String(error));
426
429
  this._consecutiveFailures += 1;
427
430
  await this.safePublishStatus(void 0, err);