Skip to content
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

[DownloadBuildArtifactsV0] Respect "Parallelization limit" input #14540

Conversation

alexander-smolyakov
Copy link
Contributor

Task name:

  • DownloadBuildArtifactsV0

Description:
This PR provide a fix for the issue when the task didn't respect the Parallelization limit input.

Changes:

  • Added resolveParallelProcessingLimit function to set Parallelization limit value
  • Changed configureDownloaderOptions function to respect Parallelization limit input

Other changes:

  • Removed timeoutPromise function since not used in task

Documentation changes required: No

Added unit tests: No

Attached related issue:

Checklist:

  • Task version was bumped - please check instruction how to do it
  • Checked that applied changes work as expected

Aleksandr Smolyakov added 2 commits March 5, 2021 11:23
- Add function to resolve `parallelProcessingLimit` value
- Changed `configureDownloaderOptions` function to respect `Parallelization limit` input
- Remove `timeoutPromise` function since not used in task
@alexander-smolyakov
Copy link
Contributor Author

Test pipeline: link

Alexander Smolyakov added 2 commits March 5, 2021 13:34
…wnloadBuildArtifactsV0_respect_parallelization_limit_input
- Extract default value to constant
- Fix code comments
- Extract duplicate logic to separate function
- Rework debug messages
@anatolybolshakov
Copy link
Contributor

Tested on basic scenario also - 'Parallelization limit' input is respected for me now.

@anatolybolshakov anatolybolshakov requested a review from a team March 9, 2021 13:49
Aleksandr Smolyakov added 2 commits March 9, 2021 17:11
Copy link
Contributor

@EzzhevNikita EzzhevNikita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Tested this changes manually, resolveParallelProcessingLimit logic work good for me. Test pipeline

Alexander Smolyakov added 2 commits March 10, 2021 11:56
…wnloadBuildArtifactsV0_respect_parallelization_limit_input
…wnloadBuildArtifactsV0_respect_parallelization_limit_input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants