bayesline.api.TaskProgress#

pydantic model bayesline.api.TaskProgress#

The progress of a task.

Show JSON schema
{
   "title": "TaskProgress",
   "description": "The progress of a 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": [
            "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)

field state: TaskState [Required]#
field last_progress: int [Required]#
field last_message: str [Required]#
field last_context: str = ''#