from app import get_conn, apply_order_timeouts


def main():
    conn = get_conn()
    try:
        cur = conn.cursor()
        apply_order_timeouts(cur)
        conn.commit()
        print("timeout sweep completed", flush=True)
    finally:
        conn.close()


if __name__ == "__main__":
    main()
