Ejemplo n.º 1
0
def delete_fn(memo: kopf.Memo, **kwargs):
    ray_cluster = memo.get("ray_cluster")
    if ray_cluster is None:
        return

    ray_cluster.clean_up()
Ejemplo n.º 2
0
def start_background_worker(memo: kopf.Memo, **_):
    memo.status_handler = threading.Thread(target=status_handling_loop,
                                           args=(cluster_status_q, ))
    memo.status_handler.start()