Skip to content

Commit

Permalink
Limit queue to 1 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
twodayslate committed Jul 2, 2024
1 parent dd09f3e commit 01ab303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var addQueue = async.queue(async function (task, callback) {
console.log('processing package in queue', task.package.info.full_name)
await parsePackageRequest(task.req, task.package)
callback()
}, process.env.PROCESS_QUEUE_SIZE || 10)
}, parseInt(process.env.PROCESS_QUEUE_SIZE || 1, 1))

module.exports = function (router) {
router.get('/add', async function (req, res) {
Expand Down

0 comments on commit 01ab303

Please sign in to comment.