@dudousxd/nestjs-durable-dashboard 0.12.0 → 0.13.0
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.
|
@@ -17,7 +17,7 @@ export declare class DashboardService {
|
|
|
17
17
|
listRuns(query: RunQuery): Promise<WorkflowRun[]>;
|
|
18
18
|
getRunDetail(runId: string): Promise<RunDetail | null>;
|
|
19
19
|
/** Re-run a failed/incomplete run; completed steps replay from their checkpoints. */
|
|
20
|
-
retry(runId: string): Promise<RunResult>;
|
|
20
|
+
retry(runId: string): Promise<RunResult | null>;
|
|
21
21
|
cancel(runId: string, opts?: {
|
|
22
22
|
compensate?: boolean;
|
|
23
23
|
}): Promise<RunResult | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.service.d.ts","sourceRoot":"","sources":["../../src/server/dashboard.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,QAAQ,EACb,KAAK,SAAS,EAEd,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,cAAc,EACd,KAAK,WAAW,EAEjB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,WAAW,CAAC;IACjB,2EAA2E;IAC3E,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B;AAED,2DAA2D;AAC3D,qBACa,gBAAgB;IAKJ,OAAO,CAAC,QAAQ,CAAC,KAAK;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM;IALzB,mFAAmF;IACnF,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAmB;gBAGZ,KAAK,EAAE,UAAU,EACtC,MAAM,EAAE,cAAc;IAKzC,oGAAoG;IACpG,OAAO,IAAI,MAAM;IAIjB,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC,WAA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CAAC,SAAS,GAAG,IAAI,CAAC;IAIjF;;;;OAIG;IACG,IAAI,CACR,MAAM,EAAE,OAAO,GAAG,QAAQ,EAC1B,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,GAAG,KAAK,GAAG,UAAU,GAAG,YAAY,CAAC,EACpE,IAAI,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,GAC9B,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAehD,yEAAyE;IACzE,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAIlD;;;;OAIG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAIvE,0FAA0F;IAC1F,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAItD,mGAAmG;IACnG,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,YAAY,CAAC;IAIxE;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;QAAE,IAAI,EAAE,WAAW,CAAA;KAAE,CAAC;CAQ5D"}
|
|
@@ -40,7 +40,9 @@ let DashboardService = class DashboardService {
|
|
|
40
40
|
}
|
|
41
41
|
/** Re-run a failed/incomplete run; completed steps replay from their checkpoints. */
|
|
42
42
|
retry(runId) {
|
|
43
|
-
|
|
43
|
+
// Re-enqueue (dispatch model) instead of resuming inline, so the request can't hang on workflow
|
|
44
|
+
// execution — a worker picks the run up and replays it.
|
|
45
|
+
return this.engine.requeue(runId);
|
|
44
46
|
}
|
|
45
47
|
cancel(runId, opts) {
|
|
46
48
|
return this.engine.cancel(runId, opts);
|
|
@@ -56,7 +58,7 @@ let DashboardService = class DashboardService {
|
|
|
56
58
|
for (const r of runs) {
|
|
57
59
|
try {
|
|
58
60
|
if (action === 'retry')
|
|
59
|
-
await this.engine.
|
|
61
|
+
await this.engine.requeue(r.id);
|
|
60
62
|
else
|
|
61
63
|
await this.engine.cancel(r.id, opts);
|
|
62
64
|
applied += 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.service.js","sourceRoot":"","sources":["../../src/server/dashboard.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAKL,WAAW,EAIX,cAAc,EAEd,cAAc,GACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAQlC,2DAA2D;AAEpD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAKa;IACrB;IALnB,mFAAmF;IAClE,gBAAgB,CAAmB;IAEpD,YACwC,KAAiB,EACtC,MAAsB;QADD,UAAK,GAAL,KAAK,CAAY;QACtC,WAAM,GAAN,MAAM,CAAgB;QAEvC,IAAI,CAAC,gBAAgB,GAAG,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;IAED,oGAAoG;IACpG,OAAO;QACL,OAAO,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC;IAC5C,CAAC;IAED,QAAQ,CAAC,KAAe;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,KAAa;QAC9B,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3C,IAAI,CAAC,GAAG;YAAE,OAAO,IAAI,CAAC;QACtB,MAAM,QAAQ,GAAG,M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K,EAAE,IAAI,CAAC,CAAC;IACzC,CAAC;IAED,0FAA0F;IAC1F,QAAQ,CAAC,KAAa,EAAE,GAAW;QACjC,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC1C,CAAC;IAED,mGAAmG;IACnG,MAAM,CAAC,KAAa,EAAE,IAAY,EAAE,GAAY;QAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;IAC9C,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,KAAa;QACrB,OAAO,IAAI,UAAU,CAAwB,CAAC,UAAU,EAAE,EAAE;YAC1D,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;gBAC1C,IAAI,KAAK,CAAC,KAAK,KAAK,KAAK;oBAAE,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;YAC9D,CAAC,CAAC,CAAC;YACH,OAAO,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;QACrB,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAnGY,gBAAgB;IAD5B,UAAU,EAAE;IAMR,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;6CACK,cAAc;GAN9B,gBAAgB,CAmG5B"}
|
|
@@ -13,7 +13,7 @@ export declare class DurableApiController {
|
|
|
13
13
|
stream(id: string): import("rxjs").Observable<{
|
|
14
14
|
data: import("@dudousxd/nestjs-durable-core").EngineEvent;
|
|
15
15
|
}>;
|
|
16
|
-
retry(id: string): Promise<import("@dudousxd/nestjs-durable-core").RunResult>;
|
|
16
|
+
retry(id: string): Promise<import("@dudousxd/nestjs-durable-core").RunResult | null>;
|
|
17
17
|
/** Bulk retry/cancel every run matching a filter (status / tag / workflow). */
|
|
18
18
|
bulk(action: 'retry' | 'cancel', status?: RunStatus, tag?: string, workflow?: string, attr?: string | string[], compensate?: string): Promise<{
|
|
19
19
|
matched: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudousxd/nestjs-durable-dashboard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Embedded control plane (runs, step timeline, retry/cancel) for nestjs-durable — bundled React SPA served by NestJS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Davide Carvalho",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"tailwindcss": "3.4.17",
|
|
50
50
|
"typescript": "5.9.3",
|
|
51
51
|
"vite": "5.4.21",
|
|
52
|
-
"@dudousxd/nestjs-durable-core": "^0.
|
|
52
|
+
"@dudousxd/nestjs-durable-core": "^0.14.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "vite build && tsc -p tsconfig.server.json && tsc -p tsconfig.client.json",
|