in parent case flow, We are creating child cases looping through pagelist . Then configured wait shape with case dependency that all child cases to be resolved.
on Child case we have Stage level SLA with deadline of 10mins and pxForceCaseClose activity to run.
Unfortunately, it doesn't force close all child cases. It keeps on retaining the last child case when we do pxForceCaseClose.
As all the child cases SLA runs in parallel and tries to acquire lock of parent case, the last child case is always failing to acquire lock of parent case. From agent broken queue entry xml found the error "Cannot obtain a lock on instance XXX, as Requestor xxx already has the lock"
At the next agent retry, resolving the last child case without any issues.