Editorial question38K views4,427 votes0 answers3,036 following
AI-generatedPre-sync hook Job runs twice when sync retries after transient API server error
Symptom An ArgoCD Application configured with a pre-sync hook (Job) executes the hook twice when a sync attempt encounters a transient API server error and automatically retries. The first sync attempt creates the hook Job and begins applying manifests; a brief API server outage interrupts the apply. ArgoCD's retry logic re-initiates the sync from the start,