Skip to content

Commit

Permalink
Merge pull request #763 from imjaroiswebdev/tech-serv-timeout-w8int-s…
Browse files Browse the repository at this point in the history
…uccess

[CSGI-2081] Update retry delay for Technical Service state read
  • Loading branch information
imjaroiswebdev authored Nov 2, 2023
2 parents dce81ca + 4cdbaed commit 89bd55b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pagerduty/resource_pagerduty_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,9 @@ func fetchService(d *schema.ResourceData, meta interface{}, errCallback func(err

errResp := errCallback(err, d)
if errResp != nil {
time.Sleep(2 * time.Second)
// Delaying retry by 30s as recommended by PagerDuty
// https://developer.pagerduty.com/docs/rest-api-v2/rate-limiting/#what-are-possible-workarounds-to-the-events-api-rate-limit
time.Sleep(30 * time.Second)
return resource.RetryableError(errResp)
}

Expand Down

0 comments on commit 89bd55b

Please sign in to comment.