0.3.2 • Published 9 years ago
kue-concierge v0.3.2
kue-concierge
A utility to keep your kue tidy
Usage
var Concierge = require('kue-concierge');
var concierge = new Concierge(config, options);
Restart stuck jobs
concierge.restartStuck()
Clear complete jobs
concierge.clearExpiredByType('complete')
Clear failed jobs
concierge.clearExpiredByType('failed')
Clear all complete jobs
concierge.clearAllByType('complete')
Clear all complete jobs (above a certain number)
concierge.clearAllByType('complete', threshold)
All functions above are promises
Config
Same format as the kue.createQueue options:
{
prefix: 'q',
redis: {
port: 1234,
host: '10.0.50.20',
auth: 'password',
db: 3, // if provided select a non-default redis db
options: {
// see https://github.com/mranney/node_redis#rediscreateclient
}
}
}
Options
{
maxFailedTime: 10 * 24 * 60 * 60 * 1000; // 10 days,
maxActiveTime: 2 * 60 * 60 * 1000; // 2 hours
maxCompleteTime: 2 * 24 * 60 * 60 * 1000; // 2 days
};
Test
npm test
Inspiration
0.3.2
9 years ago
0.3.1
9 years ago
0.3.0
10 years ago
0.2.5
10 years ago
0.2.4
10 years ago
0.2.3
10 years ago
0.2.2
10 years ago
0.2.1
10 years ago
0.2.0
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago
0.0.8
10 years ago
0.0.7
10 years ago
0.0.6
10 years ago
0.0.5
10 years ago
0.0.4
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago
0.0.1
10 years ago