-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: bound the parallelism #162
Conversation
Add the linter rule that checks for bounded parallelism, and mark the 2 locations that do `Promise.all` as bounded.
@@ -119,7 +120,11 @@ export class AssetPublishing implements IPublishProgress { | |||
*/ | |||
public async publish(options: PublishOptions = {}): Promise<void> { | |||
if (this.publishInParallel) { | |||
await Promise.all(this.assets.map(async (asset) => this.publishAsset(asset, options))); | |||
const limit = pLimit(20); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need/want to be this restrictive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Twenty is plenty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sicne this is a public facing package, can you phrase the title and description more customer focused. It will show up in the changelog (or not get released if we change it back to a chore).
Should have been a chore, thanks |
Add the linter rule that checks for bounded parallelism, and mark the 2 locations that do `Promise.all` as bounded. (cherry picked from commit b6fbdbe) # Conflicts: # .projen/deps.json # .projen/tasks.json # package.json # test/files.test.ts
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
# Backport This will backport the following commits from `main` to `v2-main`: - [chore: bound the parallelism (#162)](#162) <!--- Backport version: 9.5.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) --------- Signed-off-by: github-actions <[email protected]> Co-authored-by: Rico Hermans <[email protected]> Co-authored-by: github-actions <[email protected]>
Add the linter rule that checks for bounded parallelism, and mark the 2 locations that do
Promise.all
as bounded.