A sync succeeds but some resources are applied before their dependencies despite sync waves.
AdvancedTroubleshootingSync Operations, Hooks & Health
Answer
Likely causes → Waves only order resources inside one Application. The dependency lives in another app; or the wave annotation is on a Helm value that never renders; or the wave value is not a quoted string.
Diagnose → argocd app manifests web | grep -B2 -A2 sync-wave; check which app owns each resource.
Fix → Move dependent resources into the same app, or order Applications themselves with waves in the parent app-of-apps. Note that Application health must be enabled for waves between apps to wait on child health: add the argoproj.io/Application health customization in argocd-cm.
Prevent → Keep tightly coupled resources in one app and quote wave values ("-1").
More on Sync Operations, Hooks & Health
Sync fails with `one or more synchronization tasks are not valid` and `the server could not find the requested resource` for a custom resource.Intermediate`one or more objects failed to apply, reason: Deployment.apps "web" is invalid: spec.selector: Invalid value: ...: field is immutable`.BeginnerSync of a large CRD fails with `metadata.annotations: Too long: must have at most 262144 bytes`.BeginnerAn app has been stuck at `Syncing` for an hour with `waiting for completion of hook batch/Job/db-migrate`.IntermediateA PreSync hook fails with `jobs.batch "db-migrate" already exists`.BeginnerA PostSync smoke-test hook never runs, even though the sync says succeeded.Intermediate