frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Verity – I got tired of debugging duplicate emails after job restarts

https://www.useverity.io/
1•shineDaPoker•1h ago
Hey HN,

I built Verity after debugging a production issue where our job platform was sending duplicate emails to tens of thousands of hotel guests.

We were running automated checkout for a chain of hotels across Germany, Spain, and New York. The process had multiple steps: validate reservations, generate folios, check guests out, send receipt emails.

The job would run for 25+ minutes processing thousands of reservations. Sometimes it would time out at 30 minutes. The platform would see the job didn't complete and restart it from the beginning.

The problem: some operations were idempotent through the provider (like creating a folio with the same ID), but others weren't (like sending emails). Guests would get duplicate receipt emails. We'd generate the same reports twice.

It took a week of adding logs to figure out what was happening. The restart was invisible to our code — it just looked like the job was running twice.

I built Verity to solve this: wrap each critical step or side effect so it's safe to restart anywhere:

    // Check out guest
    await verity.protect(`checkout-${reservationId}`, {
      observe: () => hotel.getReservation(reservationId),
      act: () => hotel.checkout(reservationId)
    });

    // Send receipt (not idempotent in the email service)
    await verity.protect(`receipt-${reservationId}`, {
      observe: () => checkIfEmailSent(reservationId),
      act: () => sendReceiptEmail(guest.email, folio)
    });
If the job restarts after sending the email but before finishing, the retry checks first (observe) and skips re-sending.

It uses fencing tokens to prevent zombie workers from committing stale results if they wake up after being timed out. Full audit trail of what ran, what was skipped, and why.

The same pattern applies to any system that retries without human oversight — background jobs, workflow engines like Temporal, or AI agents that make autonomous decisions. If your code crashes after calling an external API, the retry needs to know what already succeeded.

Works with Temporal, Trigger.dev, plain job queues, or standalone.

Still early. Looking for people who've hit similar issues to try it and tell me what's wrong. Free for design partners.

Live: https://useverity.io Docs: https://useverity.io/docs Install: npm install @verityinc/sdk or pip install verityinc-sdk

Happy to answer questions about the design or share more war stories from that debugging week.

Braided River

https://en.wikipedia.org/wiki/Braided_river
1•thunderbong•8m ago•0 comments

Show HN: PullMaster – Recommends code reviewers from your repo history

1•justinko•9m ago•0 comments

Welcome to the Age of the Slop Fork

https://mbleigh.dev/posts/slop-forks/
1•mbleigh•15m ago•0 comments

Language Hacking in a Live Programming Environment (2016)

https://ohmjs.org/pubs/live2016/
1•andsoitis•16m ago•0 comments

2D memristors could help solve AI's energy problem

https://phys.org/news/2026-02-2d-memristors-ai-energy-problem.html
1•wglb•17m ago•1 comments

Super Battle Golf guide is here

https://superbattlegolf.net/
1•candseven•17m ago•0 comments

Turtle.audio – music sequencer inspired by turtle graphics programming

http://turtle.audio
1•andsoitis•17m ago•0 comments

Salesforce Sees Stable Growth; CEO Dismisses Talk of AI-Fueled 'SaaS-Pocalypse'

https://www.marketwatch.com/story/salesforce-sees-stable-growth-ceo-dismisses-talk-of-ai-fueled-s...
1•petethomas•18m ago•0 comments

Simpletalk

https://github.com/dkrasner/Simpletalk
1•andsoitis•18m ago•0 comments

The Man Who Stole Infinity

https://www.quantamagazine.org/the-man-who-stole-infinity-20260225/
1•sonabinu•20m ago•0 comments

No config? No problem. Just `wrangler deploy`

https://developers.cloudflare.com/changelog/post/2026-02-25-wrangler-autoconfig-ga/
2•cebert•23m ago•1 comments

Zimbabwe bans all raw mineral exports

https://www.semafor.com/article/02/25/2026/zimbabwe-bans-all-raw-mineral-exports
1•ilamont•23m ago•0 comments

Show HN: Weather app with temp (23°) in favicon

https://adamschwartz.co/weather/
2•adamschwartz•26m ago•0 comments

Conspiracy Theories and Online Dating: It's a (Mis)Match

https://journals.sagepub.com/doi/10.1177/01461672251399448
1•PaulHoule•26m ago•0 comments

Ask HN: What's it like working in big tech recently with all the AI tools?

8•ex-aws-dude•26m ago•0 comments

Gauging Interest in Offline Authentication

1•solarpunked•26m ago•0 comments

The Hater's Guide to Anthropic

https://www.wheresyoured.at/premium-the-haters-guide-to-anthropic/
4•gradus_ad•27m ago•0 comments

Scotiabank Divests from Elbit Systems

https://bdscoalition.ca/2026/02/16/scotiabank-fully-divests-from-elbit-systems/
3•pabs3•28m ago•0 comments

No 10 Am BTC Dump? Bitcoin Price Rallies as Jane Street Trading Draws Attention

https://www.ccn.com/news/crypto/no-10-am-btc-dump-bitcoin-price-rallies-as-jane-street-trading-dr...
2•shin_lao•29m ago•0 comments

Jane Street Hit with Terra $40B Insider Trading Suit

https://www.disruptionbanking.com/2026/02/24/jane-street-hit-with-terra-40b-insider-trading-suit/
25•shin_lao•30m ago•1 comments

The geomechanics of hydrogen storage in salt caverns [pdf]

https://assets.publishing.service.gov.uk/media/68aebcef3a052c9c504c8e60/The_geomechanics_of_hydro...
1•defrost•32m ago•1 comments

How to make LLM native User Interfaces - Post LLM Workflow

https://www.youtube.com/watch?v=F5_mbwUQeCs
1•anditherobot•35m ago•1 comments

Two Beliefs About Coding Agents: Devs Don't Realize What They Bring

https://www.dbreunig.com/2026/02/25/two-things-i-believe-about-coding-agents.html
1•dbreunig•36m ago•0 comments

Why are you still using Vercel?

https://why-vercel.pages.dev/
1•puzle•36m ago•0 comments

Your Move, Claude

https://escapesequence.dev/p/your-move-claude
2•crlfdata•40m ago•0 comments

Bioethics Was Forged in Horror. It Can Be Lost the Same Way

https://thereader.mitpress.mit.edu/bioethics-were-forged-in-horror-they-can-be-lost-the-same-way/
1•EA-3167•40m ago•0 comments

Show HN: ZSE – Open-source LLM inference engine with 3.9s cold starts

https://github.com/Zyora-Dev/zse
2•zyoralabs•40m ago•0 comments

Show HN: Taji – Portfolio advisor that's better than Fidelity's

https://www.taji.is/
2•kevin1chun•45m ago•0 comments

Therapist's Office Is Designed to Make You Cry

https://oedmethod.substack.com/p/your-therapists-office-is-designed
7•truenfel•46m ago•0 comments

The Texas AI boom is outpacing water regulations

https://www.texasobserver.org/texas-ai-data-centers-water-usage-regulation/
1•geox•47m ago•0 comments