BatchJobStatus
Bases: Enum
Batch job status.
Source code in hume/_batch/batch_job_status.py
from_str(status)
classmethod
Convert a status to a string.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
status |
str
|
Status to convert. |
required |
Returns:
Name | Type | Description |
---|---|---|
BatchJobStatus |
BatchJobStatus
|
The enum variant for the given string. |
Source code in hume/_batch/batch_job_status.py
is_terminal(status)
classmethod
Check if a status is "terminal".
Parameters:
Name | Type | Description | Default |
---|---|---|---|
status |
BatchJobStatus
|
Status to check. |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
Whether the status is "terminal". |