Skip to content

Commit 6923002

Browse files
committed
Changed to store result from jobRun() in Job
1 parent 54a2423 commit 6923002

File tree

1 file changed

+1
-5
lines changed
  • zeppelin-interpreter/src/main/java/org/apache/zeppelin/scheduler

1 file changed

+1
-5
lines changed

zeppelin-interpreter/src/main/java/org/apache/zeppelin/scheduler/Job.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public void run() {
177177
progressUpdator = new JobProgressPoller(this, progressUpdateIntervalMs);
178178
progressUpdator.start();
179179
dateStarted = new Date();
180-
jobRun(); // jobRun will store results by itself and job can get it by calling getReturn();
180+
setResult(jobRun());
181181
this.exception = null;
182182
errorMessage = null;
183183
dateFinished = new Date();
@@ -233,10 +233,6 @@ public void setJobName(String jobName) {
233233

234234
public abstract Map<String, Object> info();
235235

236-
/**
237-
* jobRun should store the data into results so that job interface gets the result by calling
238-
* getReturn();
239-
*/
240236
protected abstract Object jobRun() throws Throwable;
241237

242238
protected abstract boolean jobAbort();

0 commit comments

Comments
 (0)