bayesline.api.AsyncTasksApi

bayesline.api.AsyncTasksApi#

class bayesline.api.AsyncTasksApi#

Bases: ABC

Methods

__init__()

get_task_progress(task_id)

Get the progress of a task if it exists.

abstract async get_task_progress(task_id: str) TaskProgress#

Get the progress of a task if it exists.

Parameters#

task_id: str

The ID of the task.

Raises#

KeyError

If the task does not exist.

Returns#

TaskProgress

The progress of the task.