Add files to project in series to avoid lock contention

This commit is contained in:
James Allen 2018-03-13 13:21:48 +00:00
parent d93f5fa6be
commit 33904fe7be

View file

@ -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)->