How to Clear Long-running Tasks in IdentityNow

In IdentityNow, there are various scenarios that can lead to the appearance of the message “Identity data is being processed” on the Identity Profile page. This message signifies that there is an ongoing background task or tasks that are modifying the Identities

Admin → Identities → Identity Profiles

To confirm the existence of these pending tasks, you can check the Monitor Tab. However, there are instances where this message appears despite no background tasks currently running.

Admin → Dashboard → Monitor

The aim here is to address situations where Tasks become stuck and remain pending for an extended period. It will provide guidance on how to identify and resolve these lingering Tasks

Below are the steps to be followed

To obtain a list of all pending Tasks, you can make an API request using the following endpoint:

Endpoint : https://{org}.api.identitynow.com/cc/api/org/getPendingIdentityTasks
Method : GET

  1. From the above response we can get all the tasks which are currently running. Get the “id” of task which is stuck and running for a long time

  2. We must now replace the “completed” and “completionStatus” attribute of the Task from null to a previous date and success respectively

Endpoint : https://{{org}}.api.identitynow.com/beta/task-status/d2897690-cd7b-4137-bd82-4a43af05a465

Method : PATCH

Headers : Key: Content-Type Value: application/json-patch+json

Payload Configuration : Select Body → raw → JSON. In the form place the below text

[

{“op”: “replace”,“path”: “/completed”,“value”: “2023-06-30T00:00:00Z”},

{“op”: “replace”,“path”: “/completionStatus”,“value”: “Success”}

]

  1. After successfully updating the attributes of the stuck task as mentioned earlier, you should observe the pending tasks being removed. As a result, you should no longer see the “Identity data is being processed” message on the IdentityNow user interface (UI).
6 Likes

Hi @rajeshs ,

Thankyou for the detailed post, very helpful.

This post is awesome, thank you so much for detailing this. It has been causing me frustration for a while and that fixed it. Thank you!

1 Like