@Override public Void call() throws JLRMException { logger.info("ENTERING call()"); String command = String.format("qdel %s", jobId); SSHConnectionUtil.execute(command, site.getUsername(), site.getSubmitHost()); return null; }
@Override public Void call() throws JLRMException { logger.info("ENTERING call()"); String command = String.format("qdel %s", this.jobId); SSHConnectionUtil.execute(command, site.getUsername(), getSite().getSubmitHost()); return null; }
@Override public Void call() throws JLRMException { logger.info("ENTERING call()"); String command = String.format("bkill %s", jobId); SSHConnectionUtil.execute(command, site.getUsername(), getSite().getSubmitHost()); return null; }
String command = String.format("(mkdir -p $HOME/%s && echo $HOME)", remoteWorkDirSuffix); String remoteHome = SSHConnectionUtil.execute(command, site.getUsername(), site.getSubmitHost()); LSFSubmitScriptExporter<LSFSSHJob> exporter = new LSFSubmitScriptExporter<LSFSSHJob>(); this.job = exporter.export(localWorkDir, remoteWorkDir, this.job); SSHConnectionUtil.transferSubmitScript(site.getUsername(), site.getSubmitHost(), remoteWorkDir, this.job.getTransferExecutable(), this.job.getExecutable(), this.job.getTransferInputs(), this.job.getInputFiles(), job.getSubmitFile()); String targetFile = String.format("%s/%s", remoteWorkDir, job.getSubmitFile().getName()); command = String.format("bsub -J %s < %s", job.getName(), targetFile); String submitOutput = SSHConnectionUtil.execute(command, site.getUsername(), getSite().getSubmitHost()); LineNumberReader lnr = new LineNumberReader(new StringReader(submitOutput)); String line; Matcher matcher = pattern.matcher(line); if (!matcher.matches()) { throw new JLRMException("failed to parse the jobid number"); } else { job.setId(matcher.group(1)); throw new JLRMException("IOException: " + e.getMessage());
DateFormatUtils.ISO_DATE_FORMAT.format(new Date()), UUID.randomUUID().toString()); String command = String.format("(mkdir -p $HOME/%s && echo $HOME)", remoteWorkDirSuffix); String remoteHome = SSHConnectionUtil.execute(command, site.getUsername(), getSite().getSubmitHost()); logger.info("localWorkDir: {}", localWorkDir.getAbsolutePath()); SLURMSubmitScriptExporter<SLURMSSHJob> exporter = new SLURMSubmitScriptExporter<SLURMSSHJob>(); this.job = exporter.export(localWorkDir, remoteWorkDir, this.job); SSHConnectionUtil.transferSubmitScript(site.getUsername(), site.getSubmitHost(), remoteWorkDir, this.job.getTransferExecutable(), this.job.getExecutable(), this.job.getTransferInputs(), this.job.getInputFiles(), job.getSubmitFile()); command = String.format("sbatch %s/%s", remoteWorkDir, job.getSubmitFile().getName()); String submitOutput = SSHConnectionUtil.execute(command, site.getUsername(), getSite().getSubmitHost()); Matcher matcher = pattern.matcher(line); if (!matcher.matches()) { throw new JLRMException("failed to parse the jobid number"); } else { job.setId(matcher.group(1)); throw new JLRMException("IOException: " + e.getMessage());
String command = String.format("(mkdir -p $HOME/%s && echo $HOME)", remoteWorkDirSuffix); String remoteHome = SSHConnectionUtil.execute(command, site.getUsername(), getSite().getSubmitHost()); logger.info("localWorkDir: {}", localWorkDir.getAbsolutePath()); SGESubmitScriptExporter<SGESSHJob> exporter = new SGESubmitScriptExporter<SGESSHJob>(); this.job = exporter.export(localWorkDir, remoteWorkDir, this.job); SSHConnectionUtil.transferSubmitScript(site.getUsername(), site.getSubmitHost(), remoteWorkDir, this.job.getTransferExecutable(), this.job.getExecutable(), this.job.getTransferInputs(), this.job.getInputFiles(), job.getSubmitFile()); String targetFile = String.format("%s/%s", remoteWorkDir, job.getSubmitFile().getName()); String submitOutput = SSHConnectionUtil.execute(command, site.getUsername(), getSite().getSubmitHost()); Matcher matcher = pattern.matcher(line); if (!matcher.matches()) { throw new JLRMException("failed to parse the jobid number"); } else { job.setId(matcher.group(1)); throw new JLRMException("IOException: " + e.getMessage());
DateFormatUtils.ISO_DATE_FORMAT.format(new Date()), UUID.randomUUID().toString()); String command = String.format("(mkdir -p $HOME/%s && echo $HOME)", remoteWorkDirSuffix); String remoteHome = SSHConnectionUtil.execute(command, site.getUsername(), getSite().getSubmitHost()); logger.info("localWorkDir: {}", localWorkDir.getAbsolutePath()); PBSSubmitScriptExporter<PBSSSHJob> exporter = new PBSSubmitScriptExporter<PBSSSHJob>(); this.job = exporter.export(localWorkDir, remoteWorkDir, this.job); SSHConnectionUtil.transferSubmitScript(site.getUsername(), site.getSubmitHost(), remoteWorkDir, this.job.getTransferExecutable(), this.job.getExecutable(), this.job.getTransferInputs(), this.job.getInputFiles(), job.getSubmitFile()); String targetFile = String.format("%s/%s", remoteWorkDir, job.getSubmitFile().getName()); String submitOutput = SSHConnectionUtil.execute(command, site.getUsername(), getSite().getSubmitHost()); LineNumberReader lnr = new LineNumberReader(new StringReader(submitOutput)); String line = lnr.readLine(); Matcher matcher = pattern.matcher(line); if (!matcher.matches()) { throw new JLRMException("failed to parse the jobid number"); } else { job.setId(matcher.group(1)); throw new JLRMException("IOException: " + e.getMessage());
dateFormat); String output = SSHConnectionUtil.execute(command, site.getUsername(), getSite().getSubmitHost()); String[] lineSplit = StringUtils.split(line, '|'); if (lineSplit != null && lineSplit.length == 4) { for (SLURMJobStatusType type : SLURMJobStatusType.values()) { if (type.toString().equals(lineSplit[1])) { statusType = type; break; SLURMJobStatusInfo info = new SLURMJobStatusInfo(lineSplit[0], statusType, lineSplit[2], lineSplit[3]); logger.info("JobStatus is {}", info.toString()); jobStatusSet.add(info); throw new JLRMException("IOException: " + e.getMessage()); } catch (Exception e) { logger.error("Exception", e); throw new JLRMException("Exception: " + e.getMessage());
String command = String.format("qstat -u %s | awk '{print $1,$10,$3,$4}'", site.getUsername()); String output = SSHConnectionUtil.execute(command, site.getUsername(), site.getSubmitHost()); String[] lineSplit = line.split(" "); if (lineSplit != null && lineSplit.length == 4) { for (PBSJobStatusType type : PBSJobStatusType.values()) { if (type.getValue().equals(lineSplit[1])) { statusType = type; PBSJobStatusInfo info = new PBSJobStatusInfo(jobId, statusType, lineSplit[2], lineSplit[3]); jobStatusSet.add(info); throw new JLRMException("IOException: " + e.getMessage());
String output = SSHConnectionUtil.execute(command, site.getUsername(), site.getSubmitHost()); String[] lineSplit = line.split(" "); if (lineSplit != null && lineSplit.length == 4) { for (LSFJobStatusType type : LSFJobStatusType.values()) { if (type.getValue().equals(lineSplit[1])) { statusType = type; LSFJobStatusInfo info = new LSFJobStatusInfo(lineSplit[0], statusType, lineSplit[2], lineSplit[3]); jobStatusSet.add(info); throw new JLRMException("IOException: " + e.getMessage());
Site site = gateService.getSite(); List<Queue> siteQueueList = site.getQueueList(); if (site.getName().equals(glideinMetric.getSiteName()) && queue.getName().equals(glideinMetric.getQueueName())) {
@Override public Void call() throws JLRMException { logger.info("ENTERING call()"); String command = String.format("scancel %s", jobId); SSHConnectionUtil.execute(command, site.getUsername(), getSite().getSubmitHost()); return null; }
Site site = gateService.getSite(); List<Queue> siteQueueList = site.getQueueList(); if (queue.getName().equals(glideinMetric.getQueueName())) { if (StringUtils.isNotEmpty(activeQueues) && !activeQueues.contains(queue.getName())) { logger.info("excluding \"{}\" queue due to not being active", queue.getName()); siteQueueScoreIter.remove(); continue; if (glideinMetric.getPending() >= queue.getMaxPending()) { logger.info("Pending job threshold has been met: {} of {}", glideinMetric.getPending(), queue.getMaxPending()); siteQueueScoreIter.remove(); continue; if (glideinMetric.getRunning() >= queue.getMaxRunning()) { logger.info("totalJobs is greater that queue max job limit"); siteQueueScoreIter.remove();
score *= queue.getWeight(); logger.info("adjusted by queue weight = {}", score); if (localCondorMetrics.getSiteRequiredJobOccurance() > 0) {
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((cluster == null) ? 0 : cluster.hashCode()); result = prime * result + ((initialDirectory == null) ? 0 : initialDirectory.hashCode()); result = prime * result + ((jobId == null) ? 0 : jobId.hashCode()); result = prime * result + ((priority == null) ? 0 : priority.hashCode()); result = prime * result + ((retry == null) ? 0 : retry.hashCode()); result = prime * result + ((siteName == null) ? 0 : siteName.hashCode()); return result; }
if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass())
Site site = gateService.getSite(); List<Queue> siteQueueList = site.getQueueList(); if (site.getName().equals(glideinMetric.getSiteName()) && queue.getName().equals(glideinMetric.getQueueName())) {
score *= queue.getWeight(); logger.info("adjusted by queue weight = {}", score); if (localCondorMetrics.getSiteRequiredJobOccurance() > 0) {
Site site = gateService.getSite(); List<Queue> siteQueueList = site.getQueueList(); if (site.getName().equals(glideinMetric.getSiteName()) && queue.getName().equals(glideinMetric.getQueueName())) {
score *= queue.getWeight(); logger.info("adjusted by queue weight = {}", score); if (localCondorMetrics.getSiteRequiredJobOccurance() > 0) {