From 88d56bf3450509273522ea44356181f90213e05e Mon Sep 17 00:00:00 2001 From: Rubin Bhandari Date: Fri, 6 Oct 2023 15:25:18 +0545 Subject: [PATCH] fix: concurrency options for pool --- package.json | 14 ++--- pnpm-lock.yaml | 130 ++++++++++++++++++++-------------------- src/common/misc/pool.ts | 6 +- 3 files changed, 77 insertions(+), 73 deletions(-) diff --git a/package.json b/package.json index ef39e37a..d96d28e4 100644 --- a/package.json +++ b/package.json @@ -60,11 +60,11 @@ "@golevelup/nestjs-rabbitmq": "^4.0.0", "@golevelup/nestjs-stripe": "^0.6.3", "@golevelup/nestjs-webhooks": "^0.2.16", - "@mikro-orm/core": "^5.8.6", - "@mikro-orm/migrations": "^5.8.6", + "@mikro-orm/core": "^5.8.7", + "@mikro-orm/migrations": "^5.8.7", "@mikro-orm/nestjs": "^5.2.2", - "@mikro-orm/postgresql": "^5.8.6", - "@mikro-orm/reflection": "^5.8.6", + "@mikro-orm/postgresql": "^5.8.7", + "@mikro-orm/reflection": "^5.8.7", "@mikro-orm/sql-highlighter": "^1.0.1", "@nestjs/axios": "^3.0.0", "@nestjs/cache-manager": "^2.1.0", @@ -132,7 +132,7 @@ "rxjs": "^7.8.1", "sharp": "^0.32.6", "socket.io": "^4.7.2", - "stripe": "^13.8.0", + "stripe": "^13.9.0", "swagger-stats": "^0.99.7", "twilio": "4.18.1", "unprofane": "^1.0.6", @@ -142,8 +142,8 @@ "@firebase/app-compat": "^0.2.19", "@firebase/app-types": "^0.9.0", "@golevelup/ts-jest": "^0.4.0", - "@mikro-orm/cli": "^5.8.6", - "@mikro-orm/seeder": "^5.8.6", + "@mikro-orm/cli": "^5.8.7", + "@mikro-orm/seeder": "^5.8.7", "@nestjs/cli": "10.1.18", "@nestjs/schematics": "10.0.2", "@nestjs/testing": "10.2.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 63e630c3..9497842a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19,25 +19,25 @@ dependencies: version: 4.0.0(@nestjs/common@10.2.7)(@nestjs/core@10.2.7)(reflect-metadata@0.1.13)(rxjs@7.8.1) '@golevelup/nestjs-stripe': specifier: ^0.6.3 - version: 0.6.3(@nestjs/common@10.2.7)(@nestjs/core@10.2.7)(rxjs@7.8.1)(stripe@13.8.0) + version: 0.6.3(@nestjs/common@10.2.7)(@nestjs/core@10.2.7)(rxjs@7.8.1)(stripe@13.9.0) '@golevelup/nestjs-webhooks': specifier: ^0.2.16 version: 0.2.16(@nestjs/common@10.2.7)(body-parser@1.20.2)(rxjs@7.8.1) '@mikro-orm/core': - specifier: ^5.8.6 - version: 5.8.6(@mikro-orm/migrations@5.8.6)(@mikro-orm/postgresql@5.8.6)(@mikro-orm/seeder@5.8.6) + specifier: ^5.8.7 + version: 5.8.7(@mikro-orm/migrations@5.8.7)(@mikro-orm/postgresql@5.8.7)(@mikro-orm/seeder@5.8.7) '@mikro-orm/migrations': - specifier: ^5.8.6 - version: 5.8.6(@mikro-orm/core@5.8.6)(pg@8.11.3) + specifier: ^5.8.7 + version: 5.8.7(@mikro-orm/core@5.8.7)(pg@8.11.3) '@mikro-orm/nestjs': specifier: ^5.2.2 - version: 5.2.2(@mikro-orm/core@5.8.6)(@nestjs/common@10.2.7)(@nestjs/core@10.2.7) + version: 5.2.2(@mikro-orm/core@5.8.7)(@nestjs/common@10.2.7)(@nestjs/core@10.2.7) '@mikro-orm/postgresql': - specifier: ^5.8.6 - version: 5.8.6(@mikro-orm/core@5.8.6)(@mikro-orm/migrations@5.8.6)(@mikro-orm/seeder@5.8.6) + specifier: ^5.8.7 + version: 5.8.7(@mikro-orm/core@5.8.7)(@mikro-orm/migrations@5.8.7)(@mikro-orm/seeder@5.8.7) '@mikro-orm/reflection': - specifier: ^5.8.6 - version: 5.8.6(@mikro-orm/core@5.8.6) + specifier: ^5.8.7 + version: 5.8.7(@mikro-orm/core@5.8.7) '@mikro-orm/sql-highlighter': specifier: ^1.0.1 version: 1.0.1 @@ -82,7 +82,7 @@ dependencies: version: 7.1.13(@nestjs/common@10.2.7)(@nestjs/core@10.2.7)(class-transformer@0.5.1)(class-validator@0.14.0)(reflect-metadata@0.1.13) '@nestjs/terminus': specifier: ^10.1.1 - version: 10.1.1(@mikro-orm/core@5.8.6)(@mikro-orm/nestjs@5.2.2)(@nestjs/axios@3.0.0)(@nestjs/common@10.2.7)(@nestjs/core@10.2.7)(reflect-metadata@0.1.13)(rxjs@7.8.1) + version: 10.1.1(@mikro-orm/core@5.8.7)(@mikro-orm/nestjs@5.2.2)(@nestjs/axios@3.0.0)(@nestjs/common@10.2.7)(@nestjs/core@10.2.7)(reflect-metadata@0.1.13)(rxjs@7.8.1) '@nestjs/throttler': specifier: ^5.0.0 version: 5.0.0(@nestjs/common@10.2.7)(@nestjs/core@10.2.7)(reflect-metadata@0.1.13) @@ -240,8 +240,8 @@ dependencies: specifier: ^4.7.2 version: 4.7.2 stripe: - specifier: ^13.8.0 - version: 13.8.0 + specifier: ^13.9.0 + version: 13.9.0 swagger-stats: specifier: ^0.99.7 version: 0.99.7(prom-client@14.2.0) @@ -266,11 +266,11 @@ devDependencies: specifier: ^0.4.0 version: 0.4.0 '@mikro-orm/cli': - specifier: ^5.8.6 - version: 5.8.6(@mikro-orm/migrations@5.8.6)(@mikro-orm/postgresql@5.8.6)(@mikro-orm/seeder@5.8.6)(pg@8.11.3) + specifier: ^5.8.7 + version: 5.8.7(@mikro-orm/migrations@5.8.7)(@mikro-orm/postgresql@5.8.7)(@mikro-orm/seeder@5.8.7)(pg@8.11.3) '@mikro-orm/seeder': - specifier: ^5.8.6 - version: 5.8.6(@mikro-orm/core@5.8.6) + specifier: ^5.8.7 + version: 5.8.7(@mikro-orm/core@5.8.7) '@nestjs/cli': specifier: 10.1.18 version: 10.1.18(@swc/core@1.3.92) @@ -281,8 +281,8 @@ devDependencies: specifier: 10.2.7 version: 10.2.7(@nestjs/common@10.2.7)(@nestjs/core@10.2.7)(@nestjs/platform-express@10.2.7) '@rubiin/eslint-config': - specifier: ^1.8.8 - version: 1.8.8(eslint@8.50.0)(typescript@5.2.2)(vitest@0.34.6) + specifier: ^1.8.10 + version: 1.8.10(eslint@8.50.0)(typescript@5.2.2)(vitest@0.34.6) '@rubiin/tsconfig': specifier: ^1.1.0 version: 1.1.0 @@ -1917,7 +1917,7 @@ packages: - supports-color dev: false - /@golevelup/nestjs-stripe@0.6.3(@nestjs/common@10.2.7)(@nestjs/core@10.2.7)(rxjs@7.8.1)(stripe@13.8.0): + /@golevelup/nestjs-stripe@0.6.3(@nestjs/common@10.2.7)(@nestjs/core@10.2.7)(rxjs@7.8.1)(stripe@13.9.0): resolution: {integrity: sha512-1h9VBwZIpw/xN5iuzpA1YtQq2ezOP7dVEUnB4xtGTWX3/3KjUm2DlBawQ5YN8aTK+FJMCHTg839rq4FryEj12w==} peerDependencies: stripe: ^11.12.0 @@ -1925,7 +1925,7 @@ packages: '@golevelup/nestjs-common': 2.0.0(@nestjs/common@10.2.7) '@golevelup/nestjs-discovery': 4.0.0(@nestjs/common@10.2.7)(@nestjs/core@10.2.7) '@golevelup/nestjs-modules': 0.7.0(@nestjs/common@10.2.7)(rxjs@7.8.1) - stripe: 13.8.0 + stripe: 13.9.0 transitivePeerDependencies: - '@nestjs/common' - '@nestjs/core' @@ -2685,8 +2685,8 @@ packages: - supports-color dev: false - /@mikro-orm/cli@5.8.6(@mikro-orm/migrations@5.8.6)(@mikro-orm/postgresql@5.8.6)(@mikro-orm/seeder@5.8.6)(pg@8.11.3): - resolution: {integrity: sha512-fkZbWaz6Tk03qq7IW9Urtm1ThqkEQVel1R+viL/mN8hSjP4W7ulTj0Dg7Tp7MXiIViKPohoRnWmzfU6YwT/6Cg==} + /@mikro-orm/cli@5.8.7(@mikro-orm/migrations@5.8.7)(@mikro-orm/postgresql@5.8.7)(@mikro-orm/seeder@5.8.7)(pg@8.11.3): + resolution: {integrity: sha512-GywR4DzcZyqbwuHFwHunmTICmudknzbFeiUZwbS/TeTf/RDjwc4DCzAe9YkpMzryAZeByypFJsgYqXJJu+fEVQ==} engines: {node: '>= 14.0.0'} hasBin: true peerDependencies: @@ -2723,11 +2723,11 @@ packages: optional: true dependencies: '@jercle/yargonaut': 1.1.5 - '@mikro-orm/core': 5.8.6(@mikro-orm/migrations@5.8.6)(@mikro-orm/postgresql@5.8.6)(@mikro-orm/seeder@5.8.6) - '@mikro-orm/knex': 5.8.6(@mikro-orm/core@5.8.6)(@mikro-orm/migrations@5.8.6)(pg@8.11.3) - '@mikro-orm/migrations': 5.8.6(@mikro-orm/core@5.8.6)(pg@8.11.3) - '@mikro-orm/postgresql': 5.8.6(@mikro-orm/core@5.8.6)(@mikro-orm/migrations@5.8.6)(@mikro-orm/seeder@5.8.6) - '@mikro-orm/seeder': 5.8.6(@mikro-orm/core@5.8.6) + '@mikro-orm/core': 5.8.7(@mikro-orm/migrations@5.8.7)(@mikro-orm/postgresql@5.8.7)(@mikro-orm/seeder@5.8.7) + '@mikro-orm/knex': 5.8.7(@mikro-orm/core@5.8.7)(@mikro-orm/migrations@5.8.7)(pg@8.11.3) + '@mikro-orm/migrations': 5.8.7(@mikro-orm/core@5.8.7)(pg@8.11.3) + '@mikro-orm/postgresql': 5.8.7(@mikro-orm/core@5.8.7)(@mikro-orm/migrations@5.8.7)(@mikro-orm/seeder@5.8.7) + '@mikro-orm/seeder': 5.8.7(@mikro-orm/core@5.8.7) fs-extra: 11.1.1 tsconfig-paths: 4.2.0 yargs: 17.7.2 @@ -2743,8 +2743,8 @@ packages: - tedious dev: true - /@mikro-orm/core@5.8.6(@mikro-orm/migrations@5.8.6)(@mikro-orm/postgresql@5.8.6)(@mikro-orm/seeder@5.8.6): - resolution: {integrity: sha512-AgjJoIIO8yOMuak6/jNkmGQmKfP4AO57DGVFO6SGtYlo/hEi5iZ7nfKMHLlxiH/bw9wsXY2/mQmixwNdWfrtfA==} + /@mikro-orm/core@5.8.7(@mikro-orm/migrations@5.8.7)(@mikro-orm/postgresql@5.8.7)(@mikro-orm/seeder@5.8.7): + resolution: {integrity: sha512-k1YtQS1mP8hQZ7xBoNb7yFEP8zyvFq8INatGdYFqzilMXhkUwXTvhjHpFx5/aXoG0TO1R6oB7FLrOs8dSxUXVQ==} engines: {node: '>= 14.0.0'} peerDependencies: '@mikro-orm/better-sqlite': ^5.0.0 @@ -2779,19 +2779,19 @@ packages: '@mikro-orm/sqlite': optional: true dependencies: - '@mikro-orm/migrations': 5.8.6(@mikro-orm/core@5.8.6)(pg@8.11.3) - '@mikro-orm/postgresql': 5.8.6(@mikro-orm/core@5.8.6)(@mikro-orm/migrations@5.8.6)(@mikro-orm/seeder@5.8.6) - '@mikro-orm/seeder': 5.8.6(@mikro-orm/core@5.8.6) + '@mikro-orm/migrations': 5.8.7(@mikro-orm/core@5.8.7)(pg@8.11.3) + '@mikro-orm/postgresql': 5.8.7(@mikro-orm/core@5.8.7)(@mikro-orm/migrations@5.8.7)(@mikro-orm/seeder@5.8.7) + '@mikro-orm/seeder': 5.8.7(@mikro-orm/core@5.8.7) acorn-loose: 8.3.0 acorn-walk: 8.2.0 dotenv: 16.3.1 fs-extra: 11.1.1 globby: 11.1.0 - mikro-orm: 5.8.6 + mikro-orm: 5.8.7 reflect-metadata: 0.1.13 - /@mikro-orm/knex@5.8.6(@mikro-orm/core@5.8.6)(@mikro-orm/migrations@5.8.6)(pg@8.11.3): - resolution: {integrity: sha512-UAamqxQ2kLLUkzyvhEVKsGWnU+2i9uA50jkjrdo9A2K40rbC/4uctqsnpgwsjcxEIRzSCeXaB9K9ijEq6lkNhg==} + /@mikro-orm/knex@5.8.7(@mikro-orm/core@5.8.7)(@mikro-orm/migrations@5.8.7)(pg@8.11.3): + resolution: {integrity: sha512-CD5lF4dY9pKeHaNuZ6Fn5Q3GrroJWkStI5WPdyaNKmyAPqpsT15OGoiaj1h0XFI53rAdP1EGN7sZf4cExxN4VQ==} engines: {node: '>= 14.0.0'} peerDependencies: '@mikro-orm/core': ^5.0.0 @@ -2821,8 +2821,8 @@ packages: sqlite3: optional: true dependencies: - '@mikro-orm/core': 5.8.6(@mikro-orm/migrations@5.8.6)(@mikro-orm/postgresql@5.8.6)(@mikro-orm/seeder@5.8.6) - '@mikro-orm/migrations': 5.8.6(@mikro-orm/core@5.8.6)(pg@8.11.3) + '@mikro-orm/core': 5.8.7(@mikro-orm/migrations@5.8.7)(@mikro-orm/postgresql@5.8.7)(@mikro-orm/seeder@5.8.7) + '@mikro-orm/migrations': 5.8.7(@mikro-orm/core@5.8.7)(pg@8.11.3) fs-extra: 11.1.1 knex: 2.5.1(pg@8.11.3) pg: 8.11.3 @@ -2832,14 +2832,14 @@ packages: - supports-color - tedious - /@mikro-orm/migrations@5.8.6(@mikro-orm/core@5.8.6)(pg@8.11.3): - resolution: {integrity: sha512-Z22eY6Nt2JD/6cFI0SpAWUcLKZ2ieci7IcrsAnxLB0jeOl9O8E2OSXnS/m2srqCM15SvgLObl/Ctd+wS7L+9uA==} + /@mikro-orm/migrations@5.8.7(@mikro-orm/core@5.8.7)(pg@8.11.3): + resolution: {integrity: sha512-gM5FBlzUADbo0+jWdSl6i579dF6HUWv3XVRWzJbd87OMKfavFXTGw/jUijelyoq830X3xS9xnbDRFOfOXlMZGA==} engines: {node: '>= 14.0.0'} peerDependencies: '@mikro-orm/core': ^5.0.0 dependencies: - '@mikro-orm/core': 5.8.6(@mikro-orm/migrations@5.8.6)(@mikro-orm/postgresql@5.8.6)(@mikro-orm/seeder@5.8.6) - '@mikro-orm/knex': 5.8.6(@mikro-orm/core@5.8.6)(@mikro-orm/migrations@5.8.6)(pg@8.11.3) + '@mikro-orm/core': 5.8.7(@mikro-orm/migrations@5.8.7)(@mikro-orm/postgresql@5.8.7)(@mikro-orm/seeder@5.8.7) + '@mikro-orm/knex': 5.8.7(@mikro-orm/core@5.8.7)(@mikro-orm/migrations@5.8.7)(pg@8.11.3) fs-extra: 11.1.1 knex: 2.5.1(pg@8.11.3) umzug: 3.3.1 @@ -2855,7 +2855,7 @@ packages: - supports-color - tedious - /@mikro-orm/nestjs@5.2.2(@mikro-orm/core@5.8.6)(@nestjs/common@10.2.7)(@nestjs/core@10.2.7): + /@mikro-orm/nestjs@5.2.2(@mikro-orm/core@5.8.7)(@nestjs/common@10.2.7)(@nestjs/core@10.2.7): resolution: {integrity: sha512-NwPTmpmwf4/aX7FjKk/CTncYS7Mbr4fMvSOfbo9rOElySjpniTnk2cCGABgj2kaX9NSFHzWCUy5tAMIkoedd4A==} engines: {node: '>= 14.0.0'} peerDependencies: @@ -2863,13 +2863,13 @@ packages: '@nestjs/common': ^8.0.0 || ^9.0.0 || ^10.0.0 '@nestjs/core': ^8.0.0 || ^9.0.0 || ^10.0.0 dependencies: - '@mikro-orm/core': 5.8.6(@mikro-orm/migrations@5.8.6)(@mikro-orm/postgresql@5.8.6)(@mikro-orm/seeder@5.8.6) + '@mikro-orm/core': 5.8.7(@mikro-orm/migrations@5.8.7)(@mikro-orm/postgresql@5.8.7)(@mikro-orm/seeder@5.8.7) '@nestjs/common': 10.2.7(class-transformer@0.5.1)(class-validator@0.14.0)(reflect-metadata@0.1.13)(rxjs@7.8.1) '@nestjs/core': 10.2.7(@nestjs/common@10.2.7)(@nestjs/platform-express@10.2.7)(@nestjs/websockets@10.2.7)(reflect-metadata@0.1.13)(rxjs@7.8.1) dev: false - /@mikro-orm/postgresql@5.8.6(@mikro-orm/core@5.8.6)(@mikro-orm/migrations@5.8.6)(@mikro-orm/seeder@5.8.6): - resolution: {integrity: sha512-vsRYdGflEgrwDxKuzw1dRO9wp1kD9qdjSB2iuk+v3qQX2pwfnEdzD+DUwf0RQAd3ix4dWaM02Mx7XxomFpVz+Q==} + /@mikro-orm/postgresql@5.8.7(@mikro-orm/core@5.8.7)(@mikro-orm/migrations@5.8.7)(@mikro-orm/seeder@5.8.7): + resolution: {integrity: sha512-k/ukn62O/EK8MEVWShTk22Mce+WNXw1Lhju/mumvaiIDE+IY30lh/mTxvuEKqTy6YQnkwtHRm8ZHRrcS0Fy5Fg==} engines: {node: '>= 14.0.0'} peerDependencies: '@mikro-orm/core': ^5.0.0 @@ -2884,10 +2884,10 @@ packages: '@mikro-orm/seeder': optional: true dependencies: - '@mikro-orm/core': 5.8.6(@mikro-orm/migrations@5.8.6)(@mikro-orm/postgresql@5.8.6)(@mikro-orm/seeder@5.8.6) - '@mikro-orm/knex': 5.8.6(@mikro-orm/core@5.8.6)(@mikro-orm/migrations@5.8.6)(pg@8.11.3) - '@mikro-orm/migrations': 5.8.6(@mikro-orm/core@5.8.6)(pg@8.11.3) - '@mikro-orm/seeder': 5.8.6(@mikro-orm/core@5.8.6) + '@mikro-orm/core': 5.8.7(@mikro-orm/migrations@5.8.7)(@mikro-orm/postgresql@5.8.7)(@mikro-orm/seeder@5.8.7) + '@mikro-orm/knex': 5.8.7(@mikro-orm/core@5.8.7)(@mikro-orm/migrations@5.8.7)(pg@8.11.3) + '@mikro-orm/migrations': 5.8.7(@mikro-orm/core@5.8.7)(pg@8.11.3) + '@mikro-orm/seeder': 5.8.7(@mikro-orm/core@5.8.7) pg: 8.11.3 transitivePeerDependencies: - better-sqlite3 @@ -2899,25 +2899,25 @@ packages: - supports-color - tedious - /@mikro-orm/reflection@5.8.6(@mikro-orm/core@5.8.6): - resolution: {integrity: sha512-/4j/R6dN5YbpfLytzvi5loN2x8aAuf3ZDa65CsWVQsaVPUWgI954scZCintln/mHaBW4CFLuxdrUe6WddvOJJg==} + /@mikro-orm/reflection@5.8.7(@mikro-orm/core@5.8.7): + resolution: {integrity: sha512-NSury87CaQ6+3FJV/QMt/IySJUYLBPPjSoeFUB0Xj/Re7K/6z68nKVc/kx+onK1rFyvsZhdeUDTwoFsa9f82lw==} engines: {node: '>= 14.0.0'} peerDependencies: '@mikro-orm/core': ^5.0.0 dependencies: - '@mikro-orm/core': 5.8.6(@mikro-orm/migrations@5.8.6)(@mikro-orm/postgresql@5.8.6)(@mikro-orm/seeder@5.8.6) + '@mikro-orm/core': 5.8.7(@mikro-orm/migrations@5.8.7)(@mikro-orm/postgresql@5.8.7)(@mikro-orm/seeder@5.8.7) globby: 11.1.0 ts-morph: 20.0.0 dev: false - /@mikro-orm/seeder@5.8.6(@mikro-orm/core@5.8.6): - resolution: {integrity: sha512-KXynrox4+tbOH9iP/vQDDGs1uhLstR7B9jR6V2o6bfeKXcRIXnmeLWh7eNhN8mojtabrxM/X0fW1r37Bnz75+g==} + /@mikro-orm/seeder@5.8.7(@mikro-orm/core@5.8.7): + resolution: {integrity: sha512-TQ05eGpvfrRobuT50N8sVWIxr6hPaoTFMZtlXbwhjB09fjH5WogpkreNe2UhZW+9X7ek8VvfZQe7KakNLtLQeQ==} engines: {node: '>= 14.0.0'} peerDependencies: '@mikro-orm/core': ^5.0.0 dependencies: '@faker-js/faker': 7.6.0 - '@mikro-orm/core': 5.8.6(@mikro-orm/migrations@5.8.6)(@mikro-orm/postgresql@5.8.6)(@mikro-orm/seeder@5.8.6) + '@mikro-orm/core': 5.8.7(@mikro-orm/migrations@5.8.7)(@mikro-orm/postgresql@5.8.7)(@mikro-orm/seeder@5.8.7) fs-extra: 11.1.1 globby: 11.1.0 @@ -3287,7 +3287,7 @@ packages: swagger-ui-dist: 5.9.0 dev: false - /@nestjs/terminus@10.1.1(@mikro-orm/core@5.8.6)(@mikro-orm/nestjs@5.2.2)(@nestjs/axios@3.0.0)(@nestjs/common@10.2.7)(@nestjs/core@10.2.7)(reflect-metadata@0.1.13)(rxjs@7.8.1): + /@nestjs/terminus@10.1.1(@mikro-orm/core@5.8.7)(@mikro-orm/nestjs@5.2.2)(@nestjs/axios@3.0.0)(@nestjs/common@10.2.7)(@nestjs/core@10.2.7)(reflect-metadata@0.1.13)(rxjs@7.8.1): resolution: {integrity: sha512-aDoPK/uaR9PHn56xzand6zqpp+S3Ibm+y/OrG3M01F1WnScLfo29hbS6MdnIMqmVRAS11r/8X3xWTSo8TT/Lig==} peerDependencies: '@grpc/grpc-js': '*' @@ -3335,8 +3335,8 @@ packages: typeorm: optional: true dependencies: - '@mikro-orm/core': 5.8.6(@mikro-orm/migrations@5.8.6)(@mikro-orm/postgresql@5.8.6)(@mikro-orm/seeder@5.8.6) - '@mikro-orm/nestjs': 5.2.2(@mikro-orm/core@5.8.6)(@nestjs/common@10.2.7)(@nestjs/core@10.2.7) + '@mikro-orm/core': 5.8.7(@mikro-orm/migrations@5.8.7)(@mikro-orm/postgresql@5.8.7)(@mikro-orm/seeder@5.8.7) + '@mikro-orm/nestjs': 5.2.2(@mikro-orm/core@5.8.7)(@nestjs/common@10.2.7)(@nestjs/core@10.2.7) '@nestjs/axios': 3.0.0(@nestjs/common@10.2.7)(axios@1.5.1)(reflect-metadata@0.1.13)(rxjs@7.8.1) '@nestjs/common': 10.2.7(class-transformer@0.5.1)(class-validator@0.14.0)(reflect-metadata@0.1.13)(rxjs@7.8.1) '@nestjs/core': 10.2.7(@nestjs/common@10.2.7)(@nestjs/platform-express@10.2.7)(@nestjs/websockets@10.2.7)(reflect-metadata@0.1.13)(rxjs@7.8.1) @@ -3619,8 +3619,8 @@ packages: '@redis/client': 1.5.11 dev: false - /@rubiin/eslint-config@1.8.8(eslint@8.50.0)(typescript@5.2.2)(vitest@0.34.6): - resolution: {integrity: sha512-wrFtkND5jHXPNlOUXg71kbxt6D7hh6/EFvan/N5aPTBRWDqkd9UTMzM4f09ShES+f2NNuZsJXgHmZiqc5QAloA==} + /@rubiin/eslint-config@1.8.10(eslint@8.50.0)(typescript@5.2.2)(vitest@0.34.6): + resolution: {integrity: sha512-cqOxOmQQshws0rJt7KB7D0GprE+XJFp9lelFF0dQLv43t23Gsn8Ju7PfuJ4tmvaLOOQcsgBMS5SMFomRJkR2Pg==} peerDependencies: eslint: '>=8.0.0' dependencies: @@ -10582,8 +10582,8 @@ packages: braces: 3.0.2 picomatch: 2.3.1 - /mikro-orm@5.8.6: - resolution: {integrity: sha512-nPblmYANSTJludfTxz1CklR9xrbVsQP/WygzSm3lp+2q4rsjFfHXtvhOMBTaDrHczUeI4BIeSszYQYUhcgZVkA==} + /mikro-orm@5.8.7: + resolution: {integrity: sha512-DpYwMluF66aXTVBefSoFOsc3dSN1Las6en6OZ0Cq6qvMOeV3VLcjwgiVcLPyGtt8B6fLJL3bvh/Ax1huKC9yQA==} engines: {node: '>= 14.0.0'} /mime-db@1.52.0: @@ -13043,8 +13043,8 @@ packages: acorn: 8.10.0 dev: true - /stripe@13.8.0: - resolution: {integrity: sha512-QFOOeaEwNOAj4k/T9OtSb9sKx9oLVI5y9HrJJn3XN9RJYKGAuE+fMD+rHA5u9ILmf3FDx99jaEvVvykftJtBGA==} + /stripe@13.9.0: + resolution: {integrity: sha512-sQAqodCvaw/iYWauHHdOWlFGj0oZj/3A51zs4rG5PN3SUJUFSSjtnbc9q5Djpls0iz3nXz2UwjzAdKHVP4dVqQ==} engines: {node: '>=12.*'} dependencies: '@types/node': 20.8.2 diff --git a/src/common/misc/pool.ts b/src/common/misc/pool.ts index d31acae1..e10cf895 100644 --- a/src/common/misc/pool.ts +++ b/src/common/misc/pool.ts @@ -7,6 +7,10 @@ const logger = new Logger("ThreadPool"); /* Creating a new thread pool with half of available threads and a maximum of available threads. */ export const pool = new DynamicThreadPool(Math.floor(availableParallelism() / 2), availableParallelism(), path.resolve(__dirname, "workers.js"), { + enableTasksQueue: true, + tasksQueueOptions: { + concurrency: 8 + }, errorHandler: error => logger.error(error), onlineHandler: () => logger.log("✅ Worker is online"), -}); +})