-
Notifications
You must be signed in to change notification settings - Fork 4k
Use backoff delay for New-AzureRmResourceGroupDeployment query calls #2205
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
Conversation
Hi @TianoMS, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!
TTYL, AZPRBOT; |
|
||
do | ||
{ | ||
TestMockSupport.Delay(stepedDelay.GetNextDelay()); |
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.
Why can't we just do:
int counter = 0;
do
{
counter = counter + 5000 > 60000 ? 60000 : counter + 5000;
TestMockSupport.Delay(counter);
...
}
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.
Per our sync up, will change it to the simple way as we don't see future reuse of this.
{ | ||
this.backoffStep = backoffStep; | ||
this.maxDelay = maxDelay; | ||
|
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.
nit: unwanted new line
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.
Talked with Vivek yesterday. We don't see future reuse of this delay pattern, so I changed it to the simple way to get incremental stepped delay. I committed another change and this class was removed.
[Parameter(Mandatory = false, HelpMessage = "A hash table which represents resource plan properties.")] | ||
[ValidateNotNullOrEmpty] | ||
public Hashtable PlanObject { get; set; } | ||
public Hashtable Plan { get; set; } |
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.
Here we should add a help which suggest old parameter will still work
So help says you can use Plan or PlanObject parameter
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.
Will fix it.
This PR fixes two issues:
#1808,
#358