Pulse
GithubCloud(Pulsecron)
  • What is Pulse?
  • Why Pulse?
  • Quick Start
  • DOCS
    • Setup & Config
      • Connection
      • Config
        • Name
        • ProcessEvery
        • DefaultConcurrency
        • MaxConcurrency
        • LockLimit
        • DefaultLockLimit
        • DefaultLockLifetime
        • Sort
        • ResumeOnRestart
    • Defining Job Processors
    • Managing Job Processor
      • Start
      • Stop
    • Creating Jobs
      • Every
      • Schedule
      • Now
      • Create
    • Managing Jobs
      • Jobs
      • Cancel
      • Disable
      • Enable
      • Purge
      • isRunning
      • isExpired
      • Manually working
        • Save
        • Unique
        • RepeatEvery
        • RepeatAt
        • Schedule
        • Remove
        • Priority
        • Touch
        • SetShouldSaveResult
        • Fail
        • Run
        • Disable
        • Enable
Powered by GitBook
On this page
  • pulse.defaultLockLimit(times)
  • Example Usage
  • Parameters
  • Returns

Was this helpful?

Edit on GitHub
  1. DOCS
  2. Setup & Config
  3. Config

DefaultLockLimit

pulse.defaultLockLimit(times)

The defaultLockLimit method sets the default number of times jobs of any given type can be locked concurrently. This setting helps to manage the concurrency of job processing more finely by limiting how many instances of the same job type can be prepared for execution at the same time.

Example Usage

const pulse = new Pulse();

// Set the default concurrency for job processing to 3
pulse.defaultLockLimit(2);

//or new Pulse({ defaultLockLimit: 2 });

Parameters

  • times (number): The maximum number of times jobs of a specific type can be locked concurrently.

Returns

  • Pulse: Returns the instance of the Pulse class, allowing for method chaining.

PreviousLockLimitNextDefaultLockLifetime

Last updated 1 year ago

Was this helpful?