scheduler
Advanced tools
Comparing version 0.5.3 to 0.6.0
{ | ||
"name": "scheduler", | ||
"description": "Cron scheduler for node.js", | ||
"version": "0.5.3", | ||
"version": "0.6.0", | ||
"repository": "git://github.com/podviaznikov/node-scheduler.git", | ||
@@ -12,4 +12,4 @@ "author": "Anton Podviaznikov <podviaznikov@gmail.com>", | ||
"engines": { | ||
"node": "0.2.5" | ||
"node": "0.4.0" | ||
} | ||
} |
@@ -1,3 +0,22 @@ | ||
TODO: | ||
# Scheduler | ||
Simpler library for managing CronJobs. | ||
Each job can be identified by id. | ||
##TODO: | ||
1. job should be run using web workers if needed. | ||
2. every job should has unique id. | ||
2. every job should has unique id. | ||
## Versions | ||
Works with node 0.4 | ||
## License | ||
(The MIT License) | ||
Copyright (c) 2011 Anton Podviaznikov podviaznikov@gmail.com | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
@@ -1,3 +0,15 @@ | ||
var sys = require('sys'), | ||
CronJob = require('./cron').CronJob; | ||
/** | ||
* License | ||
* | ||
*(The MIT License) | ||
* | ||
* Copyright (c) 2011 Anton Podviaznikov <podviaznikov@gmail.com> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
var CronJob = require('./cron').CronJob; | ||
function Scheduler() | ||
@@ -17,5 +29,4 @@ { | ||
{ | ||
var job = new CronJob(id,cronMask,task); | ||
var job = this.addJob(id,cronMask,task); | ||
job.start(); | ||
this.jobs[id]=job; | ||
return job; | ||
@@ -22,0 +33,0 @@ }; |
var scheduler = require('../scheduler').create(), | ||
assert = require('assert'), | ||
sys = require('sys'); | ||
sys = require('util'); | ||
exports.testAddJobAndDelete=function() | ||
@@ -5,0 +5,0 @@ { |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
27224
10
279
23
80