From 95f71d6bec721484b0207385c265410afe9c555a Mon Sep 17 00:00:00 2001 From: Inthirakumaaran Date: Thu, 12 Dec 2024 11:37:19 +0530 Subject: [PATCH] Update config name. --- .../suspension/notification/task/AccountValidatorThread.java | 2 +- .../notification/task/util/NotificationConstants.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/org.wso2.carbon.identity.account.suspension.notification.task/src/main/java/org/wso2/carbon/identity/account/suspension/notification/task/AccountValidatorThread.java b/components/org.wso2.carbon.identity.account.suspension.notification.task/src/main/java/org/wso2/carbon/identity/account/suspension/notification/task/AccountValidatorThread.java index cf60ff32b..58fa62eba 100644 --- a/components/org.wso2.carbon.identity.account.suspension.notification.task/src/main/java/org/wso2/carbon/identity/account/suspension/notification/task/AccountValidatorThread.java +++ b/components/org.wso2.carbon.identity.account.suspension.notification.task/src/main/java/org/wso2/carbon/identity/account/suspension/notification/task/AccountValidatorThread.java @@ -180,7 +180,7 @@ private void handleTask(String tenantDomain) { */ private boolean isClusterModeEnabled() { - String clusterModeEnabledValue = IdentityUtil.getProperty(NotificationConstants.RUN_TASK_IN_CLUSTER_MODE); + String clusterModeEnabledValue = IdentityUtil.getProperty(NotificationConstants.EXECUTE_TASK_IN_SINGLE_NODE); return StringUtils.isNotBlank(clusterModeEnabledValue) ? Boolean.parseBoolean(clusterModeEnabledValue) : false; } diff --git a/components/org.wso2.carbon.identity.account.suspension.notification.task/src/main/java/org/wso2/carbon/identity/account/suspension/notification/task/util/NotificationConstants.java b/components/org.wso2.carbon.identity.account.suspension.notification.task/src/main/java/org/wso2/carbon/identity/account/suspension/notification/task/util/NotificationConstants.java index 7b3bdac94..51f73f1d5 100644 --- a/components/org.wso2.carbon.identity.account.suspension.notification.task/src/main/java/org/wso2/carbon/identity/account/suspension/notification/task/util/NotificationConstants.java +++ b/components/org.wso2.carbon.identity.account.suspension.notification.task/src/main/java/org/wso2/carbon/identity/account/suspension/notification/task/util/NotificationConstants.java @@ -27,7 +27,7 @@ public class NotificationConstants { public static final String SUSPENSION_NOTIFICATION_TRIGGER_TIME= "suspension.notification.trigger.time"; public static final String SUSPENSION_NOTIFICATION_DELAYS="suspension.notification.delays"; public static final String USE_IDENTITY_CLAIM_FOR_LAST_LOGIN_TIME = "AccountSuspension.UseIdentityClaims"; - public static final String RUN_TASK_IN_CLUSTER_MODE = "AccountSuspension.RunTaskInClusterMode"; + public static final String EXECUTE_TASK_IN_SINGLE_NODE = "AccountSuspension.ExecuteTaskOnSingleNode"; public static final String TRIGGER_TIME_FORMAT = "HH:mm:ss"; public static final long SCHEDULER_DELAY = 24; // In hours public static final String SUSPENSION_NOTIFICATION_THREAD_POOL_SIZE = "suspension.notification.thread.pool.size";