@hotmeshio/hotmesh 0.0.14 → 0.0.15
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/build/package.json
CHANGED
|
@@ -136,10 +136,10 @@ class Activity {
|
|
|
136
136
|
try {
|
|
137
137
|
this.setLeg(2);
|
|
138
138
|
await this.getState(jobId);
|
|
139
|
-
const aState = await collator_1.CollatorService.notarizeReentry(this);
|
|
140
|
-
this.adjacentIndex = collator_1.CollatorService.getDimensionalIndex(aState);
|
|
141
139
|
telemetry = new telemetry_1.TelemetryService(this.engine.appId, this.config, this.metadata, this.context);
|
|
142
140
|
telemetry.startActivitySpan(this.leg);
|
|
141
|
+
const aState = await collator_1.CollatorService.notarizeReentry(this);
|
|
142
|
+
this.adjacentIndex = collator_1.CollatorService.getDimensionalIndex(aState);
|
|
143
143
|
this.bindActivityData('hook');
|
|
144
144
|
this.mapJobData();
|
|
145
145
|
this.adjacencyList = await this.filterAdjacent();
|
|
@@ -159,6 +159,11 @@ class Activity {
|
|
|
159
159
|
return jobStatus;
|
|
160
160
|
}
|
|
161
161
|
catch (error) {
|
|
162
|
+
if (error instanceof errors_1.CollationError) {
|
|
163
|
+
//caused by external over-signaling; the job is complete
|
|
164
|
+
this.logger.info('process-hook-event-inactive-error', { error });
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
162
167
|
this.logger.error('engine-process-hook-event-error', { error });
|
|
163
168
|
telemetry.setActivityError(error.message);
|
|
164
169
|
throw error;
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetStateError } from '../../modules/errors';
|
|
1
|
+
import { CollationError, GetStateError } from '../../modules/errors';
|
|
2
2
|
import {
|
|
3
3
|
formatISODate,
|
|
4
4
|
getValueByPath,
|
|
@@ -183,11 +183,11 @@ class Activity {
|
|
|
183
183
|
try {
|
|
184
184
|
this.setLeg(2);
|
|
185
185
|
await this.getState(jobId);
|
|
186
|
+
telemetry = new TelemetryService(this.engine.appId, this.config, this.metadata, this.context);
|
|
187
|
+
telemetry.startActivitySpan(this.leg);
|
|
186
188
|
const aState = await CollatorService.notarizeReentry(this);
|
|
187
189
|
this.adjacentIndex = CollatorService.getDimensionalIndex(aState);
|
|
188
190
|
|
|
189
|
-
telemetry = new TelemetryService(this.engine.appId, this.config, this.metadata, this.context);
|
|
190
|
-
telemetry.startActivitySpan(this.leg);
|
|
191
191
|
this.bindActivityData('hook');
|
|
192
192
|
this.mapJobData();
|
|
193
193
|
this.adjacencyList = await this.filterAdjacent();
|
|
@@ -209,6 +209,11 @@ class Activity {
|
|
|
209
209
|
telemetry.setActivityAttributes(attrs);
|
|
210
210
|
return jobStatus as number;
|
|
211
211
|
} catch (error) {
|
|
212
|
+
if (error instanceof CollationError) {
|
|
213
|
+
//caused by external over-signaling; the job is complete
|
|
214
|
+
this.logger.info('process-hook-event-inactive-error', { error });
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
212
217
|
this.logger.error('engine-process-hook-event-error', { error });
|
|
213
218
|
telemetry.setActivityError(error.message);
|
|
214
219
|
throw error;
|