Lock & Unlock

These actions provide ability to create locks and unlock them for a given id and a domain.

Lock & Unlock Actions

TryLock

Tries creating a lock and returns whether it was successful:

Field
Definition
Example
Default

Input Element

Json path in payload that has id parameter

parameters

-

Output Element

Json path in payload to return "locked" results

result

-

With the following event metadata parameters:

Parameter
Definition
Example
Default

Master

Whether master lock should be used instead of a specific id

true

false

Timeout

Milliseconds to wait for acquiring a lock, overrides default

2000

-

Expiry

TTL in milliseconds for lock expiry, overrides default

10000

-

Allow No Lock

Whether failure to hold a lock should return a successful result, returns locked instead of error

true

false

Unlock

Unlocks an existing lock:

Field
Definition
Example
Default

Input Element

Json path in payload that has id parameter

parameters

-

With the following event metadata parameters:

Parameter
Definition
Example
Default

Master

Whether master lock should be used instead of a specific id

true

false

CheckLock

Returns the current status for a lock:

Field
Definition
Example
Default

Input Element

Json path in payload that has id parameter

parameters

-

Output Element

Json path in payload to return "locked" results

result

-

With the following event metadata parameters:

Parameter
Definition
Example
Default

Master

Whether master lock should be used instead of a specific id

true

false

Last updated