Subprocess utils
run_subprocess_safely(command, timeout=2000)
Run a subprocess and raise an error if it fails.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
command
|
str
|
The command to run. |
required |
timeout
|
int
|
The timeout for the command. |
2000
|
Returns:
Type | Description |
---|---|
Dict[str, Any]
|
The result of the subprocess. |
Source code in bionemo/core/utils/subprocess_utils.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|