private String getRunningJobUrl(HttpServletRequest request) {
String jobIDParam = request.getParameter("jobid");
if (jobIDParam == null) {
return null;
}
SessionInfo sessionInfo;
try {
String sessionHandle = JobID.forName(jobIDParam).getJtIdentifier();
sessionInfo = getRunningSessionInfo(sessionHandle);
} catch (Exception e) {
LOG.info("Failed to get running session info for jobid: " + jobIDParam
+ ", exception: " + e.getMessage());
return null;
}
return sessionInfo.getUrl();
}