Unlock Activity on Workflow taking Longtime.
If below activities are placed between Lock and Unlock activity block, unlock activity tales 60 seconds to complete.
- Activities which involve SSH Probe
- Activities which have Powershell Scripts
PowerShell/SSH Probes are considered a "wait" activity because the PowerShell goes off the node and the workflow goes to sleep. Therefore when the workflow starts up again it's in a different thread which is not permitted to unlock.
As per below documentation , below placing below activities between Lock and Unlock Block, will cause the workflow to wait. This may cause the Unlock activity to be unable to acquire the lock to release it and instead take 60 seconds to complete. Restricted wait activities include:
- Approval activities
- Task activities
- Timer activities
- Wait for condition activity
- Wait for WF Event activity