We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove completed jobs to free up space on Redis.
Read about job cleanup on Kue's repo.
queue.create( ... ).removeOnComplete( true ).save()
kue.Job.rangeByState( 'complete', 0, n, 'asc', function( err, jobs ) { jobs.forEach( function( job ) { job.remove( function(){ console.log( 'removed ', job.id ); }); }); });
Note that you should provide enough time for .remove calls on each job object to complete before your process exits, or job indexes will leak
The text was updated successfully, but these errors were encountered:
KayvanMazaheri
No branches or pull requests
Remove completed jobs to free up space on Redis.
Read about job cleanup on Kue's repo.
Note that you should provide enough time for .remove calls on each job object to complete before your process exits, or job indexes will leak
The text was updated successfully, but these errors were encountered: