Federal-Business-Applications icon indicating copy to clipboard operation
Federal-Business-Applications copied to clipboard

Update VisualsBulkDownloadTool.ps1

Open kalangeyash opened this issue 1 year ago • 1 comments

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.

kalangeyash avatar Mar 31 '24 07:03 kalangeyash

@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 avatar Apr 01 '24 12:04 SteveWinward

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

SteveWinward avatar Apr 16 '24 21:04 SteveWinward

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

SteveWinward avatar Apr 16 '24 21:04 SteveWinward