DefaultConcurrency
pulse.defaultConcurrency(concurrency)
pulse.defaultConcurrency(concurrency)
Example Usage
const pulse = new Pulse();
// Set the default concurrency for job processing to 3
pulse.defaultConcurrency(3);
//or new Pulse({ defaultConcurrency: 3 });
Parameters
concurrency
(number
): The default number of concurrent jobs that the system should process. This value sets a baseline for job processing unless explicitly overridden by specific jobs.
Returns
Pulse
: Returns thePulse
instance, allowing for chaining of additional method calls.
Last updated
Was this helpful?