DefaultLockLifetime
pulse.defaultLockLifetime(ms)
pulse.defaultLockLifetime(ms)
The defaultLockLifetime
method sets the default duration (in milliseconds) that a job can remain locked during processing before it is automatically released. This setting helps manage job recovery and ensures that jobs do not remain locked indefinitely if an error occurs or if the job processing is not completed as expected.
Example Usage
Parameters
ms
(number
): The duration in milliseconds for how long jobs should be locked by default.default: 600,000ms
Returns
Pulse
: Returns the instance of thePulse
class, allowing for method chaining.
Last updated