HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

stormlock — Centralized locking system. More information: <https://github.com/tmccombs/stormlock#usage>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
centralizedstormlockcommandlockingcliinformationmoresystem

Problem

How to use the stormlock command: Centralized locking system. More information: <https://github.com/tmccombs/stormlock#usage>.

Solution

stormlock — Centralized locking system. More information: <https://github.com/tmccombs/stormlock#usage>.

Acquire a lease for resource:
stormlock acquire {{resource}}


Release the given lease for the given resource:
stormlock release {{resource}} {{lease_id}}


Show information on the current lease for a resource, if any:
stormlock current {{resource}}


Test if a lease for given resource is currently active:
stormlock is-held {{resource}} {{lease_id}}

Code Snippets

Acquire a lease for resource

stormlock acquire {{resource}}

Release the given lease for the given resource

stormlock release {{resource}} {{lease_id}}

Show information on the current lease for a resource, if any

stormlock current {{resource}}

Test if a lease for given resource is currently active

stormlock is-held {{resource}} {{lease_id}}

Context

tldr-pages: common/stormlock

Revisions (0)

No revisions yet.