Skip to content

PSBlitz.ps1 - retry logic for transient errors #445

@VladDBA

Description

@VladDBA

This will add retry logic when collecting data for each check if any of the following errors occur:

  • 701 - Out of memory
  • 1205 - Deadlock victim
  • 1222 - Lock request timeout
  • 8645 - Timeout waiting for memory resource
  • 8651 - Low memory condition
  • 10928 - Azure resource limit
  • 10929 - Azure resource limit
  • 40143 - Azure transient
  • 40197 - Azure transient
  • 40501 - Azure service busy
  • 40613 - Azure database unavailable

On request, using the new -RetryOnTimeout switch, queries that get timeouts will be retried.

For the moment, the retry count and wait time between retries is hard-coded to 3 retries and 5 seconds between each retry.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions