microsoft / Federal-Business-Applications

US Government Business Applications Demo Repository
MIT License
171 stars 59 forks source link

Update VisualsBulkDownloadTool.ps1 #62

Closed kalangeyash closed 6 months ago

kalangeyash commented 6 months ago

I was failing some downloads and it was taking 3 set of 30sec interval for starting new download, I think it should be a great idea for giving it only one chance of 3 seconds and move forward.

SteveWinward commented 6 months ago

@kalangeyash thank you for looking to improve our content here. Rather than changing the hardcoded value of both $RetryCount and $TimeoutInSecs in the internal function, why don't we make it a parameter to the top level script? That way folks can run it with a default set of values, or you can override them at runtime with shorter intervals. Would you be willing to update this PowerShell script to do that?

SteveWinward commented 6 months ago

closing this request to leave the current default values as is in the sample PowerShell script.

SteveWinward commented 6 months ago

Updated the script to give command line options to change the retry count and timeout defaults at runtime now.