Comparing version 0.0.13 to 0.0.14
@@ -110,3 +110,3 @@ "use strict"; | ||
schedule._nextRun = nextRun; | ||
schedule._nextRun = nextRun.toDate(); | ||
schedule._lastUpdate = new Date(); | ||
@@ -361,4 +361,6 @@ | ||
var nextRun = getNextRun( schedule ); | ||
// before attempting to run each schedule, see if we are shutting down | ||
if ( self._running === false ) { | ||
if ( self._running === false || !nextRun ) { | ||
done( true ); | ||
@@ -378,3 +380,3 @@ return; | ||
_lastRun: moment().toISOString(), | ||
_nextRun: getNextRun( schedule ) | ||
_nextRun: nextRun.toISOString() | ||
} | ||
@@ -381,0 +383,0 @@ }, |
{ | ||
"name": "dronos", | ||
"description": "Dronos is a distributed scheduling system (with patterns similar to Linux's cron system), using MongoDB to coordinate running tasks (drons) across multiple nodes.", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"author": "Anthony Hildoer <anthony@bluerival.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
50595
1656