Skip to content

horde_sdk.ai_horde_api.apimodels.generate.progress

ResponseGenerationProgressInfoMixin

Bases: HordeAPIObjectBaseModel

A mixin for responses that contain information about the progress of a generation request.

Source code in horde_sdk/ai_horde_api/apimodels/generate/progress.py
class ResponseGenerationProgressInfoMixin(HordeAPIObjectBaseModel):
    """A mixin for responses that contain information about the progress of a generation request."""

    finished: int
    """The amount of finished jobs in this request."""
    processing: int
    """The amount of still processing jobs in this request."""
    restarted: int
    """The amount of jobs that timed out and had to be restarted or were reported as failed by a worker."""
    waiting: int
    """The amount of jobs waiting to be picked up by a worker."""
    done: bool
    """True when all jobs in this request are done. Else False."""
    faulted: bool = False
    """True when this request caused an internal server error and could not be completed."""
    wait_time: int
    """The expected amount to wait (in seconds) to generate all jobs in this request."""
    queue_position: int
    """The position in the requests queue. This position is determined by relative Kudos amounts."""
    kudos: float
    """The amount of total Kudos this request has consumed until now."""
    is_possible: bool = True
    """If False, this request will not be able to be completed with the pool of workers currently available."""
    eligible_workers: int = 0
    """The number of recently active workers that currently pass all known capability gates for this request."""
    eligible_worker_threads: int = 0
    """The total advertised generation threads across eligible workers."""
    might_stall: bool = False
    """True when newly arrived compatible work has persistently entered ahead of this request faster than eligible
    workers clear it."""

finished instance-attribute

finished: int

The amount of finished jobs in this request.

processing instance-attribute

processing: int

The amount of still processing jobs in this request.

restarted instance-attribute

restarted: int

The amount of jobs that timed out and had to be restarted or were reported as failed by a worker.

waiting instance-attribute

waiting: int

The amount of jobs waiting to be picked up by a worker.

done instance-attribute

done: bool

True when all jobs in this request are done. Else False.

faulted class-attribute instance-attribute

faulted: bool = False

True when this request caused an internal server error and could not be completed.

wait_time instance-attribute

wait_time: int

The expected amount to wait (in seconds) to generate all jobs in this request.

queue_position instance-attribute

queue_position: int

The position in the requests queue. This position is determined by relative Kudos amounts.

kudos instance-attribute

kudos: float

The amount of total Kudos this request has consumed until now.

is_possible class-attribute instance-attribute

is_possible: bool = True

If False, this request will not be able to be completed with the pool of workers currently available.

eligible_workers class-attribute instance-attribute

eligible_workers: int = 0

The number of recently active workers that currently pass all known capability gates for this request.

eligible_worker_threads class-attribute instance-attribute

eligible_worker_threads: int = 0

The total advertised generation threads across eligible workers.

might_stall class-attribute instance-attribute

might_stall: bool = False

True when newly arrived compatible work has persistently entered ahead of this request faster than eligible workers clear it.

ResponseGenerationProgressCombinedMixin

Bases: ResponseWithProgressMixin, ResponseGenerationProgressInfoMixin

A mixin for responses which provide progress and detailed information about a generation.

Source code in horde_sdk/ai_horde_api/apimodels/generate/progress.py
class ResponseGenerationProgressCombinedMixin(ResponseWithProgressMixin, ResponseGenerationProgressInfoMixin):
    """A mixin for responses which provide progress and detailed information about a generation."""