diff --git a/jobs/pacman-rule-engine-2.0/src/main/java/com/tmobile/pacman/executor/PolicyExecutor.java b/jobs/pacman-rule-engine-2.0/src/main/java/com/tmobile/pacman/executor/PolicyExecutor.java index b47e208eac..2bcd0a2a86 100755 --- a/jobs/pacman-rule-engine-2.0/src/main/java/com/tmobile/pacman/executor/PolicyExecutor.java +++ b/jobs/pacman-rule-engine-2.0/src/main/java/com/tmobile/pacman/executor/PolicyExecutor.java @@ -250,7 +250,7 @@ private void run(Map policyParam, String executionId) logger.error(DATA_ALERT_ERROR_STRING + JOB_NAME + " with job id " + policyParam.get(PacmanSdkConstants.POLICY_UUID_KEY) + "data source is missing, will not be able to figure out the target index to post the policy evaluvation, please check policy configuration"); logger.error("exiting now.."); - ProgramExitUtils.exitWithError(); + return; } logger.debug("target Type :" + policyParam.get(PacmanSdkConstants.TARGET_TYPE)); @@ -321,7 +321,7 @@ private void run(Map policyParam, String executionId) + policyParam.get(PacmanSdkConstants.POLICY_UUID_KEY) + "Exception occurred for policy with policyId:" + policyParam.get(PacmanSdkConstants.POLICY_ID)); logger.error("exiting now.." + e); - ProgramExitUtils.exitWithError(); + return; } // if resources size is not equals to number of evaluations then we have