@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.
- package/dist_bundle/bundle.js +8 -2
- package/dist_bundle/bundle.js.map +2 -2
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/taskbuffer.classes.distributedcoordinator.d.ts +2 -0
- package/dist_ts/taskbuffer.classes.distributedcoordinator.js +1 -1
- package/dist_ts/taskbuffer.classes.taskmanager.d.ts +2 -2
- package/dist_ts/taskbuffer.classes.taskmanager.js +9 -3
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/taskbuffer.classes.distributedcoordinator.ts +3 -0
- package/ts/taskbuffer.classes.taskmanager.ts +8 -2
package/dist_bundle/bundle.js
CHANGED
|
@@ -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
|
|