Interface TimeoutOptions

Hierarchy

Index

Properties

Optional acquireAttemptsLimit

acquireAttemptsLimit: number

Max number of attempts to be made for .acquire() call. Defaults to Number.POSITIVE_INFINITY.

Optional acquireTimeout

acquireTimeout: number

Milliseconds. Max timeout for .acquire() call. Defaults to 10_000. Max value is 1 day in ms, 8.64e+7

Optional lockTimeout

lockTimeout: number

Milliseconds. Time for auto-release (expiry) of lock. Defaults to 10_000. Max value is 1 day in ms, 8.64e+7. Min value is 1_000

Optional refreshInterval

refreshInterval: number

Milliseconds. auto-refresh interval. Keeps a lock reserved while the skill is doing work. Defaults to lockTimeout * 0.8. To disable, set to 0. MUST be less than lockTimeout and at least 800 if enabled.

Optional retryInterval

retryInterval: number

Milliseconds. Time between acquire attempts if resource is locked. Defaults to 10. Must be >= 10. Cannot be more than acquireTimeout.

Generated using TypeDoc