private void ajaxFetchLastSuccessfulFlowExecution(final Project project, final HashMap<String, Object> ret, final HttpServletRequest req) throws ServletException { final String flowId = getParam(req, "flow"); List<ExecutableFlow> exFlows = null; try { exFlows = this.executorManagerAdapter.getExecutableFlows(project.getId(), flowId, 0, 1, Status.SUCCEEDED); } catch (final ExecutorManagerException e) { ret.put("error", "Error retrieving executable flows"); return; } if (exFlows.size() == 0) { ret.put("success", "false"); ret.put("message", "This flow has no successful run."); return; } ret.put("success", "true"); ret.put("message", ""); ret.put("execId", exFlows.get(0).getExecutionId()); }
try { total = this.executorManagerAdapter.getExecutableFlows(project.getId(), flowId, from, length, exFlows); } catch (final ExecutorManagerException e) {
try { history = this.executorManagerAdapter.getExecutableFlows(projContain, flowContain, userContain, status, beginTime, endTime, (pageNum - 1) try { history = this.executorManagerAdapter.getExecutableFlows(searchTerm, (pageNum - 1) try { history = this.executorManagerAdapter.getExecutableFlows((pageNum - 1) * pageSize, pageSize); } catch (final ExecutorManagerException e) {
private void ajaxFetchLastSuccessfulFlowExecution(Project project, HashMap<String, Object> ret, HttpServletRequest req) throws ServletException { String flowId = getParam(req, "flow"); List<ExecutableFlow> exFlows = null; try { exFlows = executorManager.getExecutableFlows( project.getId(), flowId, 0, 1, Status.SUCCEEDED); } catch (ExecutorManagerException e) { ret.put("error", "Error retrieving executable flows"); return; } if (exFlows.size() == 0) { ret.put("success", "false"); ret.put("message", "This flow has no successful run."); return; } ret.put("success", "true"); ret.put("message", ""); ret.put("execId", exFlows.get(0).getExecutionId()); }
int total = 0; try { total = executorManager.getExecutableFlows( project.getId(), flowId, from, length, exFlows);
AzkabanWebServer server = (AzkabanWebServer) getApplication(); ExecutorManagerAdapter executorManager = server.getExecutorManager(); history = executorManager.getExecutableFlows(null, null, null, 0, startTime, endTime, -1, -1); } catch (ExecutorManagerException e) { logger.error(e);
List<ExecutableFlow> executables = executorManager.getExecutableFlows(schedule.getProjectId(), schedule.getFlowName(), 0, STAT_NUMBERS, Status.SUCCEEDED);
long endTime = end == "" ? -1 : DateTimeFormat.forPattern("MM/dd/yyyy-HH:mm").parseDateTime(end).getMillis(); try { history = executorManager.getExecutableFlows(projContain, flowContain, userContain, status, beginTime, endTime, (pageNum - 1)*pageSize, pageSize); } catch (ExecutorManagerException e) { page.add("error", e.getMessage()); String searchTerm = getParam(req, "searchterm"); try { history = executorManager.getExecutableFlows(searchTerm, (pageNum - 1)*pageSize, pageSize); } catch (ExecutorManagerException e) { history = executorManager.getExecutableFlows((pageNum - 1)*pageSize, pageSize); } catch (ExecutorManagerException e) { e.printStackTrace();