ResumeOnRestart

pulse.resumeOnRestart(resume)

The resumeOnRestart method sets a flag to ensure that jobs are resumed if the system restarts. This is particularly important for resuming unfinished jobs that were in progress or awaiting execution prior to the restart.

Example Usage

const pulse = new Pulse();

pulse.resumeOnRestart(true) // or pulse.resumeOnRestart()

//or new Pulse({ resumeOnRestart: true });

Parameters

  • resume (boolean - optional): If true, enables resuming unfinished jobs after restart. Defaults to true.

Returns

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

Last updated