Skip to content
heliaAOT
API Reference
HELIA HUB

MemoryCapacityError

Machine-readable model

  • MemoryCapacityErrorclassA planner backend ran out of memory: what it had to place fits none of the budgets it tried.
class

A planner backend ran out of memory: what it had to place fits none of the budgets it tried.

helia_aot/memory/defines.py:306

MemoryCapacityError(
message: str,
*,
memories: tuple[MemoryType, ...] = (),
hint: str | None = None,
details: str | None = None,
) -> None

A planner backend ran out of memory: what it had to place fits none of the budgets it tried.

Every out-of-memory failure the bundled planner backends raise is one, so a caller can tell a memory-size failure from any other rejection and see which memories ran short without reading the message.

attribute

memories

Python

helia_aot/memory/defines.py:333

memories = memories

The memories whose budgets the failure ran out in, in the order the backend tried them; empty when not known. Like hint it is kept in the instance’s attributes, so the error pickles and copies whole, as an error raised in a worker process must.

attribute

hint

Python

One next step, such as the setting to change.

helia_aot/memory/defines/MemoryCapacityError:1

hint

One next step, such as the setting to change.

attribute

exit_code

Python

1, as for every ``ConfigValueError`` that is not an ``InvalidConfigError``: a valid request failed while converting.

helia_aot/memory/defines/MemoryCapacityError:1

exit_code: int

1, as for every ConfigValueError that is not an InvalidConfigError: a valid request failed while converting.