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.processEvery(interval)
  • Example Usage
  • Parameters
  • Returns

Was this helpful?

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

ProcessEvery

pulse.processEvery(interval)

The processEvery method of the Pulse class allows to configure the job processing interval, meaning the frequency at which Pulse will query the database looking for jobs that need to be processed.

Example Usage

const pulse = new Pulse();

// Configure the job processing interval to every 10 minutes
pulse.processEvery('10 minutes');

//or new Pulse({ processEvery:'10 minutes' });

Parameters

  • interval (string): The interval at which to process jobs, expressed in a human-readable format, such as '5 minutes', '1 hour', etc.

Returns

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

PreviousNameNextDefaultConcurrency

Last updated 2 months ago

Was this helpful?