How to write a nightly reconciliation job that finds the records two systems disagree about, re-queues them, and keeps a cursor so a failed run resumes instead of starting over.