mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 04:59:40 +00:00
increase number of concurrent users that are synced when editing a challenge
This commit is contained in:
parent
87066ef6c7
commit
d9de6282a4
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ schema.methods.addTasks = async function challengeAddTasks (tasks) {
|
|||
let challenge = this;
|
||||
let membersIds = await _fetchMembersIds(challenge._id);
|
||||
|
||||
let queue = new cwait.TaskQueue(Bluebird, 5); // process only 5 users concurrently
|
||||
let queue = new cwait.TaskQueue(Bluebird, 25); // process only 5 users concurrently
|
||||
|
||||
await Bluebird.map(membersIds, queue.wrap((memberId) => {
|
||||
return _addTaskFn(challenge, tasks, memberId);
|
||||
|
|
|
|||
Loading…
Reference in a new issue