BFCMBlack Friday 2026: 30% OFF all Starter, Pro & Scale plans with code BFCM2026Claim deal →
All Developer Integrations
Zero-Dep Python SDK · @heartbeat

Monitor Python ETLs, Celery Tasks & Airflow DAGs with One Decorator.

Drop @heartbeat('hb_token') onto any sync or async Python function—automatically tracks /start, execution durationMs, and triggers instant /fail incidents on uncaught exceptions with zero third-party dependencies.

Quick Install / Reference
pip install git+https://github.com/dubeychandan996/alertondown-python.git
tasks.py (Celery / Airflow / Cron)
from alertondown import heartbeat, AlertOnDown

@heartbeat("hb_nightly_warehouse_etl")
def run_warehouse_etl():
    # Automatically pings /start, records runtime duration on success,
    # or sends /fail with the exception message if an error is raised.
    sync_postgres_to_clickhouse()

# Also supports async def (FastAPI / asyncio) and REST v1 deploy markers:
aod = AlertOnDown()  # reads ALERTONDOWN_API_KEY
aod.record_deploy("ML Pipeline v2.4", version="v2.4.0")

What you get with AlertOnDown + Python (Celery, Airflow & FastAPI)

Zero External Python Dependencies

Pure Python 3.9+ stdlib (urllib.request)—never conflicts with NumPy, Pydantic, Django, or Airflow deps.

Sync, Async & Context Manager

Use @heartbeat('token') on def or async def functions, or wrap blocks with `with Heartbeat('token'):`.

Automatic Exception Telemetry

Captures exception type and message into the AlertOnDown incident timeline while re-raising cleanly.

Built-In Free Diagnostics

Run check_http, check_ssl, check_dns, check_rbl, and check_headers from Python with no API key.

Python (Celery, Airflow & FastAPI) Integration FAQ

Does @heartbeat work with Celery Beat and Apache Airflow?

Yes. Stack @heartbeat('hb_token') directly under @app.task or inside PythonOperator callables—telemetry failures are swallowed by default so tasks never crash.

Does it support async def coroutines?

Yes. @heartbeat detects coroutine functions automatically and awaits them while tracking wall-clock execution time.

More Integration Guides