pub.task.taskclient.updateTask Fails: Failed to acquire lock

Hi Experts,

I am using pub.task.taskclient.updateTask service to update a task from my flow service, but its throwing below error

Error:
Failed to acquire lock for [/meta/default/task/] in 10,000 milliseconds

I have seen the documentation and updated the task lock wait time to 20,000 milliseconds but still the same error occurs.

Could you tell me how I can resolve the above issue? Is there any way to identify what is the operation which locked the task at the time error occurred?

Regards.
Irfan