pbsCluster.listDirectory("~/"); // its hard to trust isConnected method, so we try to connect if it works we are good,else we recreate } catch (Exception e) { clusters.get(key).remove(i);
int retry=3; while(retry>0){ outputList = cluster.listDirectory(jobExecutionContext.getOutputDir()); if (outputList.size() == 1 && outputList.get(0).isEmpty()) { Thread.sleep(10000);
List<String> outputList = cluster.listDirectory(jobExecutionContext.getWorkingDir(),true); boolean missingOutput = false;
pbsCluster.listDirectory("~/"); // its hard to trust isConnected method, so we try to connect if it works we are good,else we recreate } catch (Exception e) { clusters.get(key).remove(i);
int retry = 3; while (retry > 0) { outputList = cluster.listDirectory(jobExecutionContext.getOutputDir()); if (outputList.size() > 0) { break;