Waits in the script queue for a lock to become available. Returns (Task)
Overview of WaitInScriptQueue goes here.
| Name | Description |
|---|---|
| folder | The folder to wait in the script queue for |
| lockName | The name of the lock to acquire in the queue |
| exitIfQueued | Whether to exit immediately if already queued (default false) |
| retryIntervalInMilliseconds | Retry interval in milliseconds (default 50) |
| maxDelayInMilliseconds | Maximum delay in milliseconds (default 600000) |
| persistenceInMilliseconds | Persistence duration in milliseconds (default 10000) |
Example in C#
// Returns: String
var item = await client.WaitInScriptQueue(FolderInfo folder, String lockName, Boolean exitIfQueued, Int32 retryIntervalInMilliseconds, Int32 maxDelayInMilliseconds, Int32 persistenceInMilliseconds);
Example in CURL
curl -X GET \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/scriptqueue?lockName=123abc;exitIfQueue=false;retryIntervalInMilliseconds=50;maxDelayInMilliseconds=600000;persistenceInMilliseconds=10000 \
-H 'Authorization: Bearer TOKEN_GOES_HERE'