Sfoglia il codice sorgente

HUE-9187 [editor] Prevent thrown exception on execution in editor v2

The executable status is set to failed and the message is captured within so no need to re-throw any exceptions
Johan Ahlen 5 anni fa
parent
commit
55410e8408

+ 0 - 7
desktop/core/src/desktop/js/apps/notebook2/components/ko.executableActions.js

@@ -137,13 +137,6 @@ class ExecutableActions extends DisposableComponent {
       executable.execute();
     }
   }
-
-  executeNext() {
-    if (this.activeExecutable() && this.activeExecutable().nextExecutable) {
-      this.activeExecutable(this.activeExecutable().nextExecutable);
-    }
-    this.execute();
-  }
 }
 
 componentUtils.registerComponent(NAME, ExecutableActions, TEMPLATE);

+ 0 - 1
desktop/core/src/desktop/js/apps/notebook2/execution/executable.js

@@ -227,7 +227,6 @@ export default class Executable {
       this.logs.fetchLogs();
     } catch (err) {
       this.setStatus(EXECUTION_STATUS.failed);
-      throw err;
     }
   }