sparqlGraphLibrary/src/main/java/com/ge/research/semtk/api/nodeGroupExecution/NodeGroupExecutor.java
public void waitOnJobCompletion(int sleepMsec, int maxMinutes) throws Exception{
		
		if(sleepMsec < 10){ sleepMsec = 10; }
		
		int percentComplete = 0;
		int elapsedMsec = 0;
		int maxMsec = maxMinutes * 60 * 1000;
		
		while(percentComplete < 100) {
			if (maxMsec > 0 && elapsedMsec > maxMsec) {
				throw new Exception("Job did not complete within " + maxMinutes + " minutes");
			}
			percentComplete = this.tracker.waitForPercentOrMsec(this.currentJobId, 100, sleepMsec);
			elapsedMsec += sleepMsec;
		}
		
		return;
	}
/**
	 * Wait for job to complete in an efficient manner
	 * @param sleepMsec - how often to query.  Note job will return if it finishes sooner.
	 * @param maxMinutes - ignored if < 1
	 * @throws Exception - failure or job does not complete in maxMinutes
	 */
Wait for job to complete in an efficient manner
@param sleepMsec - how often to query.  Note job will return if it finishes sooner.
@param maxMinutes - ignored if < 1
@throws Exception - failure or job does not complete in maxMinutes
Wait for job to complete in an efficient manner @param sleepMsec - how often to query . Note job will return if it finishes sooner . @param maxMinutes - ignored if < 1 @throws Exception - failure or job does not complete in maxMinutes
public void waitOnJobCompletion(int sleepMsec, int maxMinutes) throws Exception{
		if(sleepMsec < 10){ sleepMsec = 10; }
		int percentComplete = 0;
		int elapsedMsec = 0;
		int maxMsec = maxMinutes * 60 * 1000;
		while(percentComplete < 100) {
			if (maxMsec > 0 && elapsedMsec > maxMsec) {
				throw new Exception("Job did not complete within " + maxMinutes + " minutes");
			}
			percentComplete = this.tracker.waitForPercentOrMsec(this.currentJobId, 100, sleepMsec);
			elapsedMsec += sleepMsec;
		}
		return;
	}
public void waitOnJobCompletion ( int sleepMsec , int maxMinutes ) throws Exception { if ( sleepMsec < 10 ) { sleepMsec = 10 ; } int percentComplete = 0 ; int elapsedMsec = 0 ; int maxMsec = maxMinutes * 60 * 1000 ; while ( percentComplete < 100 ) { if ( maxMsec > 0 && elapsedMsec > maxMsec ) { throw new Exception ( "Job did not complete within " + maxMinutes + " minutes" ) ; } percentComplete = this . tracker . waitForPercentOrMsec ( this . currentJobId , 100 , sleepMsec ) ; elapsedMsec += sleepMsec ; } return ; }
Wait for job to complete in an efficient manner
 @param sleepMsec - how often to query.
Wait for job to complete in an efficient manner @param sleepMsec - how often to query .