Skip to content

Commit 14758e0

Browse files
authored
Merge pull request #93 from cloudgraphdev/fix/tags-performance
fix(performance): improve tags processing time
2 parents 17dfad6 + def9b1f commit 14758e0

3 files changed

Lines changed: 1041 additions & 1736 deletions

File tree

src/services/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ export default class Provider extends CloudGraph.Client {
762762
const serviceClass = this.getService(serviceData.name)
763763
const entities: any[] = []
764764
for (const region of Object.keys(serviceData.data)) {
765+
await new Promise(resolve => setTimeout(resolve, 10)) // free the main nodejs thread to process other requests
765766
const data = serviceData.data[region]
766767
if (!isEmpty(data)) {
767768
data.forEach((service: any) => {

0 commit comments

Comments
 (0)