adonis-scheduler
Advanced tools
Comparing version 2.0.3 to 2.1.0
{ | ||
"name": "adonis-scheduler", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"description": "Easy task scheduling for AdonisJS", | ||
@@ -14,2 +14,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"co": "^4.6.0", | ||
"node-schedule": "^1.1.1" | ||
@@ -16,0 +17,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
# Adonis Kue Provider | ||
# Adonis Scheduler Provider | ||
@@ -3,0 +3,0 @@ This library provides an easy way to schedule recurring tasks for AdonisJS. |
@@ -1,2 +0,2 @@ | ||
'user strict'; | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ const Ioc = require('adonis-fold').Ioc; |
'use strict'; | ||
const co = require('co'); | ||
const fs = require('fs'); | ||
@@ -51,3 +52,3 @@ const path = require('path'); | ||
// Register task handler | ||
this.instance.scheduleJob(Task.schedule, taskInstance.handle.bind(taskInstance)); | ||
this.instance.scheduleJob(Task.schedule, co.wrap(taskInstance.handle.bind(taskInstance))); | ||
} catch (e) { | ||
@@ -54,0 +55,0 @@ // If this file is not a valid javascript class, print warning and return |
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
11441
225
3
+ Addedco@^4.6.0