DefaultLockLifetime
pulse.defaultLockLifetime(ms)
pulse.defaultLockLifetime(ms)
Example Usage
const pulse = new Pulse();
// Set the default lock lifetime to 5 minutes (300000 ms)
pulse.defaultLockLifetime(300000);
//or new Pulse({ defaultLockLifetime: 300000 });
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
Was this helpful?