From e6e41fb8b7f75826178a3f38b2d8e98e151b0ab0 Mon Sep 17 00:00:00 2001 From: sotojn Date: Mon, 9 Sep 2024 08:44:16 -0700 Subject: [PATCH] add catch when setting state in ex controller --- .../teraslice/src/lib/workers/execution-controller/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/teraslice/src/lib/workers/execution-controller/index.ts b/packages/teraslice/src/lib/workers/execution-controller/index.ts index d100303c0fb..efba6184bf9 100644 --- a/packages/teraslice/src/lib/workers/execution-controller/index.ts +++ b/packages/teraslice/src/lib/workers/execution-controller/index.ts @@ -434,7 +434,10 @@ export class ExecutionController { /// shutdown. We want to restart in this case. if (status !== 'stopping' && includes(runningStatuses, status)) { this.logger.info('Skipping shutdown to allow restart...'); - await this.executionStorage.setStatus(this.exId, 'paused'); + await this.executionStorage.setStatus(this.exId, 'paused') + .catch((err) => { + logError(this.logger, err, 'failure to set status to paused while restarting..'); + }); return; } }