Skip to content

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

Merged
merged 4 commits into from
May 5, 2016

Conversation

TianoMS
Copy link

@TianoMS TianoMS commented May 3, 2016

This PR fixes two issues:
#1808,
#358

@azurecla
Copy link

azurecla commented May 3, 2016

Hi @TianoMS, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!


It looks like you're working at Microsoft (tiano). If you're full-time, we DON'T require a contribution license agreement.



If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

@TianoMS
Copy link
Author

TianoMS commented May 3, 2016


do
{
TestMockSupport.Delay(stepedDelay.GetNextDelay());
Copy link
Contributor

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);
...
}

Copy link
Author

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;

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: unwanted new line

Copy link
Author

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.

@TianoMS
Copy link
Author

TianoMS commented May 4, 2016

@hovsepm hovsepm merged commit a36114f into Azure:dev May 5, 2016
[Parameter(Mandatory = false, HelpMessage = "A hash table which represents resource plan properties.")]
[ValidateNotNullOrEmpty]
public Hashtable PlanObject { get; set; }
public Hashtable Plan { get; set; }
Copy link
Contributor

@gandhiniraj gandhiniraj May 6, 2016

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

Copy link
Author

Choose a reason for hiding this comment

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

Will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants