Synced-cron new features: allowParallelExecution and callbacks

quave:synced-cron package version 2.2.0

New features:

  1. allowParallelExecution option (default: false)

    • Controls whether multiple instances of the same job can run simultaneously
  2. timeoutToConsiderRunningForParallelExecution option

    • Sets a time limit after which a new job instance can start, even if the previous one is still running
  3. Callback functions:

    • onSuccess: Triggered after successful job completion
    • onError: Called when a job encounters an error

Breaking change:
allowParallelExecution now defaults to false. Set to true in SyncedCron.add() to maintain previous behavior of allowing parallel executions.

Full changelog and documentation on GitHub.

4 Likes