adonisjs-scheduler
Advanced tools
Comparing version 0.1.1 to 0.1.3
@@ -29,10 +29,14 @@ "use strict"; | ||
process.on('SIGTERM', () => { | ||
Logger.info(`SIGTERM received. Stopping all tasks...`); | ||
for (const task of tasks) { | ||
task.stop(); | ||
} | ||
process.exit(0); | ||
}); | ||
process.on('SIGINT', () => { | ||
Logger.info(`SIGINT received. Stopping all tasks...`); | ||
for (const task of tasks) { | ||
task.stop(); | ||
} | ||
process.exit(0); | ||
}); | ||
@@ -39,0 +43,0 @@ for (let index = 0; index < Scheduler.items.length; index++) { |
{ | ||
"name": "adonisjs-scheduler", | ||
"version": "0.1.1", | ||
"version": "0.1.3", | ||
"description": "Task scheduler for AdonisJS", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/KABBOUCHI/adonisjs-scheduler#readme", |
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
24602
527