Examples of KillXCommand


Examples of org.apache.oozie.command.wf.KillXCommand

                                    + caction.getId());
                        }
                    }
                    else if (caction.getStatus() == CoordinatorActionBean.Status.KILLED) {
                        if (caction.getExternalId() != null) {
                            queueCallable(new KillXCommand(caction.getExternalId()));
                            log.debug("Recover a KILLED coord action and resubmit KillXCommand :" + caction.getId());
                        }
                    }
                    else if (caction.getStatus() == CoordinatorActionBean.Status.RUNNING) {
                        if (caction.getExternalId() != null) {
View Full Code Here

Examples of org.apache.oozie.command.wf.KillXCommand

        // job must already be killed (test xml) so set some status for KillX to work
        JPAService jpaService = Services.get().get(JPAService.class);
        WorkflowJobBean wf = jpaService.execute(new WorkflowJobGetJPAExecutor(jobId));
        wf.setStatus(WorkflowJob.Status.FAILED);
        jpaService.execute(new WorkflowJobUpdateJPAExecutor(wf));
        new KillXCommand(jobId).call();
        waitForEventGeneration(1000); //wait for wf-action kill event to generate
        Thread.sleep(200); //wait for wf job kill event to generate
        ehs.new EventWorker().run();
        waitForEventGeneration(2000); // time for listeners to run
        ehs.getEventQueue().poll(); // ignore duration event
View Full Code Here

Examples of org.apache.oozie.command.wf.KillXCommand

        // Changing to synchronous call from asynchronous queuing to prevent the
        // loss of command if the queue is full or the queue is lost in case of
        // failure.
        try {
            if (useXCommand) {
                new KillXCommand(jobId).call();
            }
            else {
                new KillCommand(jobId).call();
            }
            LOG.info("User " + user + " killed the WF job " + jobId);
View Full Code Here

Examples of org.apache.oozie.command.wf.KillXCommand

                            && action.getStatus() != CoordinatorActionBean.Status.TIMEDOUT
                            && action.getStatus() != CoordinatorActionBean.Status.SUCCEEDED
                            && action.getStatus() != CoordinatorActionBean.Status.KILLED) {
                        // queue a WorkflowKillXCommand to delete the workflow job and actions
                        if (action.getExternalId() != null) {
                            queue(new KillXCommand(action.getExternalId()));
                            updateCoordAction(action);
                            LOG.debug("Killed coord action = [{0}], new status = [{1}], pending = [{2}] and queue KillXCommand for [{3}]",
                                            action.getId(), action.getStatus(), action.getPending(), action.getExternalId());
                        }
                        else {
View Full Code Here

Examples of org.apache.oozie.command.wf.KillXCommand

                            log.debug("Recover a SUSPENDED coord action and resubmit SuspendXCommand :" + caction.getId());
                        }
                    }
                    else if (caction.getStatus() == CoordinatorActionBean.Status.KILLED) {
                        if (caction.getExternalId() != null) {
                            queueCallable(new KillXCommand(caction.getExternalId()));
                            log.debug("Recover a KILLED coord action and resubmit KillXCommand :" + caction.getId());
                        }
                    }
                    else if (caction.getStatus() == CoordinatorActionBean.Status.RUNNING) {
                        if (caction.getExternalId() != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.