Search in sources :

Example 1 with InterruptSyncingException

use of com.sequenceiq.freeipa.sync.InterruptSyncingException in project cloudbreak by hortonworks.

the class NodeStatusJob method executeTracedJob.

@Override
protected void executeTracedJob(JobExecutionContext context) throws JobExecutionException {
    Long stackId = getStackId();
    Stack stack = stackService.getByIdWithListsInTransaction(stackId);
    try {
        if (flowLogService.isOtherFlowRunning(stackId)) {
            LOGGER.debug("NodeStatusJob cannot run, because flow is running for freeipa stack: {}", stackId);
        } else {
            LOGGER.debug("No flows running, trying to check node status for freeipa");
            checkNodeHealthReports(stack);
        }
    } catch (InterruptSyncingException e) {
        LOGGER.info("Node status check was interrupted", e);
    }
}
Also used : InterruptSyncingException(com.sequenceiq.freeipa.sync.InterruptSyncingException) Stack(com.sequenceiq.freeipa.entity.Stack)

Aggregations

Stack (com.sequenceiq.freeipa.entity.Stack)1 InterruptSyncingException (com.sequenceiq.freeipa.sync.InterruptSyncingException)1