mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request 'Fix policy delegation task starting issue' (#364) from rajitha/device-mgt-core:task-mgt into master
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/364
This commit is contained in:
commit
28d55eb109
@ -154,6 +154,10 @@ public class PolicyAdministratorPointImpl implements PolicyAdministratorPoint {
|
||||
//Check whether the TaskType is already registered. If not we'll register it here.
|
||||
if (!registeredTaskTypes.contains(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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user