lib-task-scheduler
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -35,3 +35,3 @@ /// <reference types="node" /> | ||
errorHandler?: (err: Error, taskConfig?: TaskConfig) => any; | ||
wrapExecute?: (task: Task) => Promise<boolean>; | ||
wrapExecute?: (task: Task, taskConfig: TaskConfig) => Promise<boolean>; | ||
logger?: Logger; | ||
@@ -38,0 +38,0 @@ } |
@@ -130,3 +130,3 @@ "use strict"; | ||
if (this.config.wrapExecute) { | ||
hasMoreWork = yield this.config.wrapExecute(schedule.task); | ||
hasMoreWork = yield this.config.wrapExecute(schedule.task, schedule.config); | ||
} | ||
@@ -133,0 +133,0 @@ else { |
{ | ||
"name": "lib-task-scheduler", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "A lightweight, modular task scheduler.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/convoyinc/lib-task-scheduler", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100449