Skip to content

IIS AppPool - Create: added retry logic and parameter cleanup#211

Merged
hnrkndrssn merged 2 commits intoOctopusDeploy:masterfrom
gregjhogan:patch-2
Sep 4, 2015
Merged

IIS AppPool - Create: added retry logic and parameter cleanup#211
hnrkndrssn merged 2 commits intoOctopusDeploy:masterfrom
gregjhogan:patch-2

Conversation

@gregjhogan
Copy link
Copy Markdown
Contributor

Added Execute-WithRetry to make saving IIS config more forgiving (it fails every once in a while due to the file being locked)
Fixed consistency issues with Queue Length and Regular Time Interval parameters

Added Execute-WithRetry to make saving IIS config more forgiving
Fixed consistency issues with Queue Length and Regular Time Interval parameters
@gregjhogan gregjhogan changed the title Added retry logic and parameter cleanup IIS AppPool - Create : added retry logic and parameter cleanup Sep 3, 2015
@gregjhogan gregjhogan changed the title IIS AppPool - Create : added retry logic and parameter cleanup IIS AppPool - Create: added retry logic and parameter cleanup Sep 3, 2015
If something changes the IIS config outside of this script after the application pool is copied into a variable, attempting to commit the IIS config causes the following error:
Cannot commit configuration changes because the file has changed on disk
@gregjhogan
Copy link
Copy Markdown
Contributor Author

I updated my patch because I discovered that the code I put in the retry block always fails if something else (perhaps another deployment) modifies the IIS config in between the script reading the application pool config and attempting to commit the IIS config.

@hnrkndrssn hnrkndrssn added this to the vNext milestone Sep 4, 2015
hnrkndrssn added a commit that referenced this pull request Sep 4, 2015
IIS AppPool - Create: added retry logic and parameter cleanup
@hnrkndrssn hnrkndrssn merged commit 023aa82 into OctopusDeploy:master Sep 4, 2015
@hnrkndrssn
Copy link
Copy Markdown
Contributor

Thanks very much for your contribution, this will deployed to production today.

@hnrkndrssn hnrkndrssn modified the milestone: vNext Sep 6, 2015
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.

2 participants