From a0e25386fcc5a0668b92dd6bc9bf46d7bbd8843f Mon Sep 17 00:00:00 2001 From: James Allen Date: Thu, 14 Sep 2017 17:00:44 +0200 Subject: [PATCH] Delete cleanup.js --- services/web/cleanup.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 services/web/cleanup.js diff --git a/services/web/cleanup.js b/services/web/cleanup.js deleted file mode 100644 index 9d6d88285c..0000000000 --- a/services/web/cleanup.js +++ /dev/null @@ -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)