-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
Use case:
My code performs a cluster-level operation that MUST be successful before other members of the cluster are allowed to begin (think "restarting a web service" on a node in a load balanced cluster).
"MUST" here includes when the program dies (either due to it's own exception, or due to a system exception).
I'd like to:
- get the lock
- perform the operation
- remove the lock
If/When the operation (step 2) dies, the lock should persist (so no other members of the cluster perform the operation). Additionally, I'd like to be able to restart the program/application and resume with the same lock.
Currently, locks/semaphores are created with :ephemeral_sequential, which means the lock is automatically removed if/when the operation dies.
Metadata
Metadata
Assignees
Labels
No labels