mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 20:01:27 +00:00
13 lines
283 B
CoffeeScript
13 lines
283 B
CoffeeScript
async = require "async"
|
|
Settings = require "settings-sharelatex"
|
|
logger = require("logger-sharelatex")
|
|
queue = async.queue((task, cb)->
|
|
task(cb)
|
|
, Settings.parallelSqlQueryLimit)
|
|
|
|
queue.drain = ()->
|
|
logger.debug('all items have been processed')
|
|
|
|
module.exports =
|
|
queue: queue
|
|
|