bayesline.api.TaskProgress#
- pydantic model bayesline.api.TaskProgress#
The progress of a task.
Attributes#
- stateTaskState
Current state of the task.
- last_progressint
Last reported progress percentage (0-100).
- last_messagestr
Last status message from the task.
- last_contextstr, default=’’
Additional context information about the task.
Show JSON schema
{ "title": "TaskProgress", "description": "The progress of a task.\n\nAttributes\n----------\nstate : TaskState\n Current state of the task.\nlast_progress : int\n Last reported progress percentage (0-100).\nlast_message : str\n Last status message from the task.\nlast_context : str, default=''\n Additional context information about the task.", "type": "object", "properties": { "state": { "$ref": "#/$defs/TaskState" }, "last_progress": { "title": "Last Progress", "type": "integer" }, "last_message": { "title": "Last Message", "type": "string" }, "last_context": { "default": "", "title": "Last Context", "type": "string" } }, "$defs": { "TaskState": { "description": "The state of a task.", "enum": [ "CANCELLED", "QUEUED", "RUNNING", "COMPLETED", "FAILED", "RETRY" ], "title": "TaskState", "type": "string" } }, "required": [ "state", "last_progress", "last_message" ] }
- Fields:
last_context (str)last_message (str)last_progress (int)state (bayesline.api._src.tasks.TaskState)