Commit 52bf90b
committed
KubernetesExecutor: retry pod creation on Kubernetes API 500 errors
Treat 500 InternalServerError responses from the Kubernetes API as transient when creating
worker pods and requeue the task according to `task_publish_max_retries` (or indefinitely when -1).
This avoids failing tasks due to transient kube-apiserver errors and logs retry attempts with details.1 parent b2f7873 commit 52bf90b
2 files changed
Lines changed: 24 additions & 0 deletions
File tree
- providers/cncf/kubernetes
- src/airflow/providers/cncf/kubernetes/executors
- tests/unit/cncf/kubernetes/executors
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
| |||
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
410 | 430 | | |
411 | 431 | | |
412 | 432 | | |
| |||
439 | 459 | | |
440 | 460 | | |
441 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
442 | 465 | | |
443 | 466 | | |
444 | 467 | | |
| |||
0 commit comments