Commit 8cda1f8
fix: Agent 2 error handling - allow waterfall fallback on API errors
Problem: When Agent 2 gets API errors (529 Overloaded, 500 Internal Error),
it throws exception and exits before reaching waterfall check.
Impact: ALL courses with Agent 2 errors fail immediately, waterfall never triggers.
- Bald Head Island Club: API 529
- Birchwood CC: API 529
- Beaver Creek: API 529
- Birdieworkz: API 529
- Brookwood: API 500
Solution: Catch Agent 2 exceptions gracefully
- Set staff = [] on error
- Create minimal course_data
- Continue to waterfall check
- Let Agents 2.1 and 2.2 attempt recovery
Expected Recovery: 60-100% of failed courses (based on Docker tests)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent c70b6c4 commit 8cda1f8
1 file changed
+43
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
261 | 292 | | |
262 | 293 | | |
263 | 294 | | |
| |||
0 commit comments