Fix policy delegation task starting issue

remotes/1712966534876109980/master
Rajitha Kumara 8 months ago
parent dd03a073b2
commit 0673792bcc

@ -154,6 +154,10 @@ public class PolicyAdministratorPointImpl implements PolicyAdministratorPoint {
//Check whether the TaskType is already registered. If not we'll register it here. //Check whether the TaskType is already registered. If not we'll register it here.
if (!registeredTaskTypes.contains(PolicyManagementConstants.DELEGATION_TASK_TYPE)) { if (!registeredTaskTypes.contains(PolicyManagementConstants.DELEGATION_TASK_TYPE)) {
taskService.registerTaskType(PolicyManagementConstants.DELEGATION_TASK_TYPE); taskService.registerTaskType(PolicyManagementConstants.DELEGATION_TASK_TYPE);
// Delete init task if exists
if (taskManager.isTaskScheduled(taskName)) {
taskManager.deleteTask(taskName);
}
} }
TaskInfo registeredTaskInfo = null; TaskInfo registeredTaskInfo = null;

Loading…
Cancel
Save