Commit 1180f0d
Nissan Pow
Add TTL strategy to Argo WorkflowTemplates and update CronWorkflow to use schedules
Add a configurable ttlStrategy to Argo WorkflowTemplates so completed
workflows are automatically cleaned up after 7 days (matching the default
Kubernetes job TTL). Configurable via METAFLOW_ARGO_WORKFLOWS_TTL_SECONDS_AFTER_COMPLETION
env var; set to 0 to disable.
Also update CronWorkflow creation to use the `schedules` array field instead
of the deprecated singular `schedule` field, per Argo Workflows deprecation
notice.
Closes #1231, closes #23511 parent 961b844 commit 1180f0d
3 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
476 | 483 | | |
477 | 484 | | |
478 | 485 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
897 | 898 | | |
898 | 899 | | |
899 | 900 | | |
| 901 | + | |
| 902 | + | |
900 | 903 | | |
901 | 904 | | |
902 | 905 | | |
| |||
4211 | 4214 | | |
4212 | 4215 | | |
4213 | 4216 | | |
| 4217 | + | |
| 4218 | + | |
| 4219 | + | |
| 4220 | + | |
| 4221 | + | |
| 4222 | + | |
| 4223 | + | |
| 4224 | + | |
4214 | 4225 | | |
4215 | 4226 | | |
4216 | 4227 | | |
| |||
0 commit comments