@push.rocks/taskbuffer 3.1.2 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6222,11 +6222,17 @@ var TaskManager = class {
6222
6222
  const task = this.getTaskByName(taskName);
6223
6223
  return task && task.cronJob ? task.cronJob.cronExpression : null;
6224
6224
  }
6225
- start() {
6225
+ async start() {
6226
+ if (this.options.distributedCoordinator) {
6227
+ await this.options.distributedCoordinator.start();
6228
+ }
6226
6229
  this.cronJobManager.start();
6227
6230
  }
6228
- stop() {
6231
+ async stop() {
6229
6232
  this.cronJobManager.stop();
6233
+ if (this.options.distributedCoordinator) {
6234
+ await this.options.distributedCoordinator.stop();
6235
+ }
6230
6236
  }
6231
6237
  };
6232
6238