Skip to content

Commit

Permalink
Merge pull request #117 from XpressAI/adry/dont-compile-when-spark-su…
Browse files Browse the repository at this point in the history
…bmit

Don't compile when doing spark submit
  • Loading branch information
MFA-X-AI authored Mar 3, 2022
2 parents 3a9fd9a + b3c894e commit 83f4618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/xircuitBodyWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -855,8 +855,8 @@ export const BodyWidget: FC<BodyWidgetProps> = ({
let pythonCode = getPythonCompiler();
let showOutput = false;

// Don't compile if 'Run w/o compile' is chosen
if(runType != 'run-dont-compile'){
// Only compile when 'Run' is chosen
if(runType == 'run'){
commands.execute(commandIDs.createArbitraryFile, { pythonCode, showOutput });
setCompiled(true);
}
Expand Down

0 comments on commit 83f4618

Please sign in to comment.