File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
desktop/core/src/desktop/js/apps/notebook Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import { getStatementsParser } from 'parse/utils';
3131import { SHOW_EVENT as SHOW_GIST_MODAL_EVENT } from 'ko/components/ko.shareGistModal' ;
3232import { cancelActiveRequest } from 'api/apiUtils' ;
3333import { ACTIVE_SNIPPET_CONNECTOR_CHANGED_EVENT } from 'apps/editor/events' ;
34- import { findEditorConnector } from 'config/hueConfig' ;
34+ import { findEditorConnector , getLastKnownConfig } from 'config/hueConfig' ;
3535import {
3636 ASSIST_GET_DATABASE_EVENT ,
3737 ASSIST_GET_SOURCE_EVENT ,
@@ -2575,7 +2575,10 @@ class Snippet {
25752575 } else {
25762576 job . percentJob = ko . observable ( job . percentJob ) ;
25772577 }
2578- self . jobs . push ( job ) ;
2578+ const config = getLastKnownConfig ( ) ;
2579+ if ( config && config [ 'hue_config' ] && config [ 'hue_config' ] [ 'is_yarn_enabled' ] ) {
2580+ self . jobs . push ( job ) ;
2581+ }
25792582 } else if ( typeof job . percentJob !== 'undefined' ) {
25802583 for ( let i = 0 ; i < _found . length ; i ++ ) {
25812584 _found [ i ] . percentJob ( job . percentJob ) ;
You can’t perform that action at this time.
0 commit comments