8000 document watchStuckJobs · JavaScriptExpert/kue@f00d4eb · GitHub
[go: up one dir, main page]

Skip to content

Commit f00d4eb

Browse files
committed
document watchStuckJobs
1 parent 188119b commit f00d4eb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/kue.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@ Queue.prototype.promote = function (ms, l) {
172172
}, ms);
173173
};
174174

175+
/**
176+
* Runs a LUA script to diff inactive jobs ZSET cardinality
177+
* and helper pop LIST length each `ms` milliseconds and syncs helper LIST.
178+
*
179+
* @param {Number} ms interval for periodical script runs
180+
* @api public
181+
*/
182+
175183
Queue.prototype.watchStuckJobs = function (ms) {
176184
var client = this.client
177185
, ms = ms || 1000;

0 commit comments

Comments
 (0)
0