Distributed Task Scheduler System Design: Jobs, Retries, Leases, and Failures
A user schedules a payment for 9:00 AM. At 9:00, the scheduler finds the job and hands it to a worker. The worker calls the payment provider, the charge succeeds, and then the worker crashes before recording success. What should happen next?