code: public synchronized boolean isJobComplete() {
       return (runState == JobStatus.SUCCEEDED || runState == JobStatus.FAILED 
               || runState == JobStatus.KILLED);
     }
docs: Returns true if the status is for a completed job.