Skip to content- Sources: primary
- Summary: Afzal Ansari reproduced the failure in five of six lab runs: when a level-1 refresh reaches the controller first after a window closes, it compares the recorded revision against itself, decides the app already synced, and self-heal runs a partial sync that skips all hooks and writes no history. He recommends making the migration a managed Job with sync-wave -1 and a per-release name, or turning off selfHeal on apps that run migrations so the timer-driven refresh runs a full sync.
- Why it matters: Teams that run schema migrations as Argo CD hooks behind sync windows can ship new code against an old schema while the UI shows Synced and Healthy.
- Background: Argo CD sync windows block or allow automated syncs on a schedule, and resource hooks are Jobs annotated to run at phases such as PreSync or Sync. Self-heal re-applies only the resources that drifted from Git, and these partial syncs do not run hooks. Sync waves order ordinary managed resources, so a Job placed in an earlier wave must be healthy before later waves apply.