From 88937b1ff91c86849c8b1c057c21ae8e316538e8 Mon Sep 17 00:00:00 2001 From: Eddie Mattia Date: Tue, 27 May 2025 09:58:47 -0700 Subject: [PATCH] add k8s list and kill to faq --- docs/scaling/remote-tasks/kubernetes.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/scaling/remote-tasks/kubernetes.md b/docs/scaling/remote-tasks/kubernetes.md index e2132e86..b9ae91b4 100644 --- a/docs/scaling/remote-tasks/kubernetes.md +++ b/docs/scaling/remote-tasks/kubernetes.md @@ -88,3 +88,27 @@ $ python bigsum.py logs 15/end You can request higher disk space for pods by using the `disk` attribute of `@kubernetes`. + +## How to list running pods? + +You can list running tasks with the following command from the directory containing a flow running Metaflow tasks on Kubernetes: +```bash +python flow.py kubernetes list --help +``` + +**Options** +- `--my-runs` List all my unfinished tasks. +- `--user TEXT` List unfinished tasks for the given user. +- `--run-id TEXT` List unfinished tasks corresponding to the run id. + +## How to terminate running pods? + +You can terminate running tasks with the following command from the directory containing a flow running Metaflow tasks on Kubernetes: +```bash +python flow.py kubernetes kill --help +``` + +**Options** +- `--my-runs` Kill all my unfinished tasks. +- `--user TEXT` Terminate unfinished tasks for the given user. +- `--run-id TEXT` Terminate unfinished tasks corresponding to the run id.