From b357172b391bf9037a043fdf9408e6f5c3b09937 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 5 Jun 2024 04:35:02 +0530 Subject: [PATCH] feat: check if interepretation in progress --- server/src/workflow-management/classes/Interpreter.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/src/workflow-management/classes/Interpreter.ts b/server/src/workflow-management/classes/Interpreter.ts index 4d2a9bba..890b0cf2 100644 --- a/server/src/workflow-management/classes/Interpreter.ts +++ b/server/src/workflow-management/classes/Interpreter.ts @@ -261,4 +261,12 @@ export class WorkflowInterpreter { return result; } + /** + * Returns true if an interpretation is currently running. + * @returns {boolean} + */ + public interpretationInProgress = () => { + return this.interpreter !== null; + }; + }