LockLimit
pulse.lockLimit(limit)
pulse.lockLimit(limit)
Example Usage
const pulse = new Pulse();
// Set a global lock limit to prevent too many jobs from being locked at the same time
pulse.lockLimit(5);
//or new Pulse({ lockLimit: 5 });
Parameters
limit
(number
): The maximum number of jobs that can be locked simultaneously across the system.
Returns
Pulse
: Returns thePulse
instance, enabling method chaining.
Last updated
Was this helpful?