Skip to content

Scheduler v2

Compare
Choose a tag to compare
@peppeocchi peppeocchi released this 15 Apr 23:24
· 68 commits to master since this release

Changelog

  • Scheduler configuration changes
    • removed emailFrom
    • added email configuration
      • from
      • subject
      • body
      • transport
    • removed timezone
    • removed verboseLockFile

New methods

  • then - This lets you define a callback to run after a job execution (e.g. log with a custom logger, ping a url ... )
  • onlyOne - This method has the same functionalities as the previous doNotOverlap

Removed methods

  • Advanced logging has been removed from the scheduler, the then method provides more flexibility.
    • setLogger
    • setLabel
    • setJobDoneMessage
  • doNotOverlap - The new method onlyOne allows more flexibility
  • every - More helpers have been added for simplicity
    • minute
    • hour
    • day
    • month

Schedule times

Check the README for all the available methods