mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-05 06:09:20 +00:00
added cleanup.js back in
This commit is contained in:
parent
721eda71f3
commit
9145a1c9ba
1 changed files with 11 additions and 0 deletions
11
services/web/cleanup.js
Normal file
11
services/web/cleanup.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
var keys = require('./app/js/infrastructure/Keys');
|
||||
var settings = require('settings-sharelatex');
|
||||
var queueName = process.argv[2];
|
||||
var projectQueueName = process.argv[3];
|
||||
var queue = require('fairy').connect(settings.redis.web).queue(queueName);
|
||||
console.log("cleaning up queue "+ queueName + " " + projectQueueName);
|
||||
queue._requeue_group(projectQueueName);
|
||||
|
||||
//fairy should kill the process but just in case
|
||||
thirtySeconds = 30 * 1000
|
||||
setTimeout(process.exit, thirtySeconds)
|
Loading…
Reference in a new issue