Interface BetterLockJobOptions

Options that apply on LockJob

Hierarchy

Properties

execution_timeout?: number

How long can a job be executing before timing out. Null to disable timeout. Overrides BetterLockOptions value.

extend_stack_traces?: boolean

In any error produced by BetterLock, extend the stack trace to include incoming trace. Overrides BetterLockOptions value.

wait_timeout?: number

How long can jobs wait in queue before timing out. Overrides BetterLockOptions value.

Methods

  • Before acquiring lock, call this function with the given key. If condition is rejected, the executor is immediately called, without locking. This can be used to more conveniently opt out of locking, without duplicating or extracting the executor. Overrides BetterLockOptions value.

    Parameters

    Returns boolean

Generated using TypeDoc