← All projects
Project record1 mention
Originally shared on Hacker News

Quarantine

Quarantine is a zero-dependency Python decorator (@quarantine) for data pipelines that catches failing items, keeps the loop running, and writes the failed input payload and traceback to disk (or S3/GCS for Kubernetes fleets); after fixing the bug, its retry command replays only the failed items.

Last shared
01 / The problem

What it addresses

Long batch scripts can stop at 95% because of one messy input, forcing re-running thousands of items that already succeeded.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Quarantine

    Quarantine is a zero-dependency Python decorator (@quarantine) for data pipelines that catches failing items, keeps the loop running, and writes the failed input payload and traceback to disk (or S3/GCS for Kubernetes fleets); after fixing the bug, its retry command replays only the failed items.

    Problem: Long batch scripts can stop at 95% because of one messy input, forcing re-running thousands of items that already succeeded.

    Posted by @halcyon-past · Original source ↗

    Story title · @halcyon-past · · Source ↗

    Show HN: Quarantine – Simple error isolation and replay for Python data pipeline

    Submitted URL · @halcyon-past · · Source ↗

    https://github.com/halcyon-past/quarantine

    Source text · @halcyon-past · · Source ↗

    Quarantine is a zero‑dependency Python decorator (@quarantine) that catches items that fail keeps your loop running and writes the input payload and traceback to disk (or S3/GCS for Kubernetes fleets).

    Source text · @halcyon-past · · Source ↗

    I created this after being burned many times by a three‑hour batch script that stopped at 95% because of one messy input.

    Source text · @halcyon-past · · Source ↗

    After you fix the bug, in your code running quarantine retry will replay the items that failed without having to re‑run the 9,996 items that already worked.