# A PreSync hook Job sets ttlSecondsAfterFinished: 0 so finished Jobs vanish quickly. What problem can this cause during an Argo CD sync?

Argo CD, Hard (Expert), Troubleshooting & Debugging. https://k8wiz.com/uquiz/a-presync-hook-job-sets-ttlsecondsafterfinished-0-so-finished-jobs-vanish-quickly-what-problem-can-this-cause-during-an-argo-cd

- A. The sync can wait on a hook Job that no longer exists
- B. The Job is recreated in a loop by the application controller
- C. Argo CD marks the Job as an orphaned resource and prunes it
- D. The Job reports Healthy before its pod has started running

**Answer:** The sync can wait on a hook Job that no longer exists

**Explanation:** Argo CD reads the hook Job to find out whether the phase succeeded. If the TTL controller deletes the Job first, the sync can end up waiting for a hook that is gone. The Argo CD docs recommend the argocd.argoproj.io/hook-delete-policy annotation for cleanup instead of ttlSecondsAfterFinished.
