def get_file_heartbeat():
    if hasattr(settings, "SOIL_HEARTBEAT_FILE"):
        try:
            with open(settings.SOIL_HEARTBEAT_FILE, 'r') as f:
                return f.read()
        except __HOLE__:
            return NOT_FOUND
    else:
        return NOT_CONFIGURED
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/soil/heartbeat.py/get_file_heartbeat