Skip to content

Commit

Permalink
Update API reference
Browse files Browse the repository at this point in the history
  • Loading branch information
dostuffthatmatters committed Nov 13, 2023
1 parent 5315c68 commit 64bb633
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/pages/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,16 @@ will be used as the working directory for the process.
##### `terminate_process`

```python
def terminate_process(script_path: str) -> list[int]
def terminate_process(script_path: str,
termination_timeout: Optional[int] = None) -> list[int]
```

Terminate all processes that have the given script as their
entrypoint. Returns the list of terminated PIDs.

If `termination_timeout` is not None, the processes will be
terminated forcefully after the given timeout (in seconds).


## `tum_esm_utils.shell`

Expand Down
1 change: 1 addition & 0 deletions scripts/generate_docs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import os
import tempfile

Expand Down

0 comments on commit 64bb633

Please sign in to comment.