tasks
Public background task contracts; execution handles remain in TaskManager.
- class bedrock_server_manager.api.models.tasks.TaskAcceptedResponse(*, status: Literal['accepted'] = 'accepted', message: str, task_id: str)
- model_config = {'allow_inf_nan': False, 'extra': 'forbid', 'frozen': True, 'hide_input_in_errors': True, 'revalidate_instances': 'always', 'strict': True, 'validate_default': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class bedrock_server_manager.api.models.tasks.TaskState(*, status: Literal['queued', 'running', 'completed', 'failed', 'cancelling', 'cancelled'], message: str, result: JsonValue = None, error: APIErrorResponse | None = None)
- model_config = {'allow_inf_nan': False, 'extra': 'forbid', 'frozen': True, 'hide_input_in_errors': True, 'revalidate_instances': 'always', 'strict': True, 'validate_default': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class bedrock_server_manager.api.models.tasks.TaskSnapshot(*, epoch: str | None = None, revision: Annotated[int | None, Ge(ge=1), Le(le=9007199254740991)] = None, status: Literal['queued', 'running', 'completed', 'failed', 'cancelling', 'cancelled'], message: str, result: JsonValue = None, error: APIErrorResponse | None = None, id: str)
- model_config = {'allow_inf_nan': False, 'extra': 'forbid', 'frozen': True, 'hide_input_in_errors': True, 'revalidate_instances': 'always', 'strict': True, 'validate_default': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].