Merge pull request #1 from sharelatex/jpallen-patch-1

Delete cleanup.js
This commit is contained in:
James Allen 2017-09-18 14:30:04 +02:00 committed by GitHub
commit 8852e09274

View file

@ -1,11 +0,0 @@
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)