Skip to content

Commit 43e9f13

Browse files
authored
fix: update cdn handler timeouts (#2117)
1 parent 9139ae7 commit 43e9f13

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

CHANGELOG.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@
1414
- **Breaking Change:** Introduce typed enum constants for status attributes
1515
- `git`: [v0.3.2](services/git/CHANGELOG.md#v032-2025-05-02)
1616
- **Bugfix**: Spelling corrections in documentation
17-
- `cdn`[v1.0.0](services/cdn/CHANGELOG.md#v100-2025-05-02)
18-
- **Feature:** Support for log management
19-
- **Feature:** Create distribution payload has additional optional attributes for blocked countries, IPs and volume limitation
20-
- **Feature:** Config Patch payload has additional optional attributes for blocked countries, IPs and volume limitation
21-
- **Breaking Change:** Config has additional required attributes for blocked countries, IPs and volume limitation
17+
- `cdn`:
18+
- [v1.0.1](services/cdn/CHANGELOG.md#v101-2025-05-05)
19+
- **Enhancement:** Increase waiter timeouts
20+
- [v1.0.0](services/cdn/CHANGELOG.md#v100-2025-05-02)
21+
- **Feature:** Support for log management
22+
- **Feature:** Create distribution payload has additional optional attributes for blocked countries, IPs and volume limitation
23+
- **Feature:** Config Patch payload has additional optional attributes for blocked countries, IPs and volume limitation
24+
- **Breaking Change:** Config has additional required attributes for blocked countries, IPs and volume limitation
2225
- `alb`: [v0.2.2](services/alb/CHANGELOG.md#v022-2025-05-02)
2326
- **Feature:** Switch to beta2 API
2427

services/cdn/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v1.0.1 (2025-05-05)
2+
- **Enhancement:** Increase waiter timeouts
3+
14
## v1.0.0 (2025-05-02)
25
- **Feature:** Support for log management
36
- **Feature:** Create distribution payload has additional optional attributes for blocked countries, IPs and volume limitation

services/cdn/wait/wait.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func CreateDistributionPoolWaitHandler(ctx context.Context, api APIClientInterfa
5454
}
5555
return false, nil, nil
5656
})
57-
handler.SetTimeout(1 * time.Minute)
57+
handler.SetTimeout(10 * time.Minute)
5858
return handler
5959
}
6060

@@ -109,7 +109,7 @@ func DeleteDistributionWaitHandler(ctx context.Context, api APIClientInterface,
109109

110110
return false, nil, err
111111
})
112-
handler.SetTimeout(30 * time.Second)
112+
handler.SetTimeout(10 * time.Minute)
113113
return handler
114114
}
115115

@@ -136,7 +136,7 @@ func CreateCDNCustomDomainWaitHandler(ctx context.Context, a APIClientInterface,
136136
return true, nil, fmt.Errorf("CDNCustomDomainWaitHandler: unexpected status %s", *resp.CustomDomain.Status)
137137
}
138138
})
139-
handler.SetTimeout(1 * time.Minute)
139+
handler.SetTimeout(10 * time.Minute)
140140
return handler
141141
}
142142

@@ -156,6 +156,6 @@ func DeleteCDNCustomDomainWaitHandler(ctx context.Context, a APIClientInterface,
156156
}
157157
return false, nil, err
158158
})
159-
handler.SetTimeout(30 * time.Second)
159+
handler.SetTimeout(10 * time.Minute)
160160
return handler
161161
}

0 commit comments

Comments
 (0)