Starting from Appway 11, the functionalities described in this article and previously contained in the HazelcastForceUnlock Extension have been moved to the Appway Core Platform.
The purpose of the ‘Force Unlock Process Instances’ thread is to release old, long-living Hazelcast locks on Process Instances after 2 to 2.5 minutes. This retains system stability.
Should the ‘Force Unlock Process Instances’ thread die for whatever reason, you can either:
- Manually release old, long-living locks directly in Appway Studio
or - Use the Hazelcast Force Unlock functionality.
In addition to releasing Hazelcast locks on Process Instances, the Hazelcast Force Unlock functionality also releases old, long-living locks on Users.
When using this functionality, a new job called ‘Hazelcast Force Unlock’ is registered. This job runs every 30s, 15s and 45s after the full minute. For example, it runs at 14:07:15, 14:07:45, 14:08:15, etc.
The ‘Hazelcast Force Unlock’ job loops over all of the distributed locks that Hazelcast knows about. If a lock is found which is older than 5 minutes, the lock is released and a warning message is logged. The 5-minute interval is used to ensure there is no interference with the default force unlock interval of 2 minutes.