Skip to content

Commit 46ee039

Browse files
authored
add k8s list and kill to faq (#147)
1 parent e8240e5 commit 46ee039

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/scaling/remote-tasks/kubernetes.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,27 @@ $ python bigsum.py logs 15/end
8888

8989
You can request higher disk space for pods by using the `disk` attribute of
9090
`@kubernetes`.
91+
92+
## How to list running pods?
93+
94+
You can list running tasks with the following command from the directory containing a flow running Metaflow tasks on Kubernetes:
95+
```bash
96+
python flow.py kubernetes list --help
97+
```
98+
99+
**Options**
100+
- `--my-runs` List all my unfinished tasks.
101+
- `--user TEXT` List unfinished tasks for the given user.
102+
- `--run-id TEXT` List unfinished tasks corresponding to the run id.
103+
104+
## How to terminate running pods?
105+
106+
You can terminate running tasks with the following command from the directory containing a flow running Metaflow tasks on Kubernetes:
107+
```bash
108+
python flow.py kubernetes kill --help
109+
```
110+
111+
**Options**
112+
- `--my-runs` Kill all my unfinished tasks.
113+
- `--user TEXT` Terminate unfinished tasks for the given user.
114+
- `--run-id TEXT` Terminate unfinished tasks corresponding to the run id.

0 commit comments

Comments
 (0)