Closed cwarden closed 4 months ago
Add a HoldLease function that can be used to renew a lease acquired from a separate process.
This is useful when you want to block while waiting for a lease, then renew the lease in the background, e.g.
$ export LOCK=$(deploylock-client acquire -n lock-name https://lock-server/) $ deploylock-client renew -n lock-name -l $LOCK https://lock-server/ & $ <do work while holding lease>
Thank you for your contribution ❤️
Add a HoldLease function that can be used to renew a lease acquired from a separate process.
This is useful when you want to block while waiting for a lease, then renew the lease in the background, e.g.