Commit 5105d92
Update generation annotation in handleResume to prevent spurious re-runs
When a job is suspended then resumed, handleResume now records the
current spec generation in the LastScheduledGenerationAnnotation before
creating the pod. Without this, editing the spec while a job is
suspended and then resuming it would leave a stale annotation, causing
Reconcile to detect a false generation change and trigger an extra
re-run after the resumed job completes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 02759ab commit 5105d92
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
197 | 204 | | |
198 | 205 | | |
199 | 206 | | |
| |||
832 | 839 | | |
833 | 840 | | |
834 | 841 | | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
835 | 856 | | |
836 | 857 | | |
837 | 858 | | |
| |||
0 commit comments