mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
12 lines
474 B
JavaScript
12 lines
474 B
JavaScript
|
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)
|