@dudousxd/nestjs-durable 0.30.1 → 0.30.2
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/dist/index.cjs +14 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -516,6 +516,9 @@ function unavailableRunGateway() {
|
|
|
516
516
|
retryWithInput(_runId, _input) {
|
|
517
517
|
return tenantGatewayUnavailable("retryWithInput");
|
|
518
518
|
},
|
|
519
|
+
redispatchPending(_runId) {
|
|
520
|
+
return tenantGatewayUnavailable("redispatchPending");
|
|
521
|
+
},
|
|
519
522
|
subscribe(_runId, _onEvent) {
|
|
520
523
|
throw new Error("RunGateway.subscribe() is not available \u2014 pass `transport` to use RunGateway.");
|
|
521
524
|
}
|
|
@@ -944,6 +947,12 @@ var ProxyRunGateway = class {
|
|
|
944
947
|
input
|
|
945
948
|
});
|
|
946
949
|
}
|
|
950
|
+
redispatchPending(runId) {
|
|
951
|
+
return this.request({
|
|
952
|
+
kind: "redispatch",
|
|
953
|
+
runId
|
|
954
|
+
});
|
|
955
|
+
}
|
|
947
956
|
subscribe(runId, onEvent) {
|
|
948
957
|
const unsubscribe = this.transport.onTenantEvent?.(this.tenant, (evt) => {
|
|
949
958
|
if (evt.event.runId === runId) onEvent(evt.event);
|
|
@@ -1175,6 +1184,8 @@ var RunRequestResponder = class {
|
|
|
1175
1184
|
return this.gateway.continue(body.runId);
|
|
1176
1185
|
case "retryWithInput":
|
|
1177
1186
|
return this.gateway.retryWithInput(body.runId, body.input);
|
|
1187
|
+
case "redispatch":
|
|
1188
|
+
return this.gateway.redispatchPending(body.runId);
|
|
1178
1189
|
}
|
|
1179
1190
|
}
|
|
1180
1191
|
};
|
|
@@ -1256,6 +1267,9 @@ var StoreRunGateway = class {
|
|
|
1256
1267
|
retryWithInput(runId, input) {
|
|
1257
1268
|
return this.engine.retryWithInput(runId, input);
|
|
1258
1269
|
}
|
|
1270
|
+
redispatchPending(runId) {
|
|
1271
|
+
return this.engine.redispatchPending(runId);
|
|
1272
|
+
}
|
|
1259
1273
|
subscribe(runId, onEvent) {
|
|
1260
1274
|
return this.engine.subscribe((event) => {
|
|
1261
1275
|
if (event.runId === runId) onEvent(event);
|