From 33904fe7bea9229f9112ede834e95d822da85a34 Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 13 Mar 2018 13:21:48 +0000 Subject: [PATCH] Add files to project in series to avoid lock contention --- .../app/coffee/Features/Uploads/FileSystemImportManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Uploads/FileSystemImportManager.coffee b/services/web/app/coffee/Features/Uploads/FileSystemImportManager.coffee index 6ab23b2d5a..6f64c11a18 100644 --- a/services/web/app/coffee/Features/Uploads/FileSystemImportManager.coffee +++ b/services/web/app/coffee/Features/Uploads/FileSystemImportManager.coffee @@ -57,7 +57,7 @@ module.exports = FileSystemImportManager = FileSystemImportManager.addEntity user_id, project_id, parent_folder_id, entry, "#{folderPath}/#{entry}", replace, callback else callback() - async.parallelLimit jobs, 5, callback + async.series jobs, callback addEntity: (user_id, project_id, folder_id, name, path, replace, callback = (error, entity)-> ) -> FileSystemImportManager._isSafeOnFileSystem path, (err, isSafe)->