def is_alive(window=timedelta(minutes=10)):
    hb = last_heartbeat()
    return hb and (datetime.utcnow() - window) < hb
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/soil/heartbeat.py/is_alive/original