From 06c6f4d6464699203f254f0f98b8ce68b4d5a1a7 Mon Sep 17 00:00:00 2001 From: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> Date: Tue, 30 Jun 2026 11:41:13 -0400 Subject: [PATCH] fix(comms): add "recover" function in ecl/workunit * expose a "recover" convenience function in ecl/workunit * fix the flags passed to WUResubmit by the "resubmit" function Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> --- packages/comms/src/ecl/workunit.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/comms/src/ecl/workunit.ts b/packages/comms/src/ecl/workunit.ts index 7426c78c32..698a1cdc8f 100644 --- a/packages/comms/src/ecl/workunit.ts +++ b/packages/comms/src/ecl/workunit.ts @@ -548,7 +548,7 @@ export class Workunit extends StateObject implem return this.WUAction(WsWorkunits.ECLWUActions.Reschedule); } - resubmit(): Promise { + recover(): Promise { return this.WUResubmit({ CloneWorkunit: false, ResetWorkflow: false @@ -561,6 +561,19 @@ export class Workunit extends StateObject implem }); } + resubmit(): Promise { + return this.WUResubmit({ + CloneWorkunit: false, + ResetWorkflow: true + }).then(() => { + this.clearState(this.Wuid); + return this.refresh().then(() => { + this._monitor(); + return this; + }); + }); + } + clone(): Promise { return this.WUResubmit({ CloneWorkunit: true,