Ask HN: How do you handle duplicate side effects when jobs, workflows retry?
Quick context: I'm building background job automation and keep hitting this pattern:1. Job calls external API (Stripe, SendGrid, AWS) 2. API call succeeds 3. Job crashes before recording success 4. Job retries → calls API again → duplicateExample: process refund, send email notification, crash. Retry does both again. Customer gets duplicate refund email (or worse, duplicate refund).I see a few...