Skip to content

hololinked.core.eventloop.operations.SchedulerExecutionContext

Bases: Struct

Additional context for the serving side while executing an operation.

Source code in repo/hololinked/hololinked/core/eventloop/operations.py
class SchedulerExecutionContext(msgspec.Struct, rename="camel"):
    """Additional context for the serving side while executing an operation."""

    invokation_timeout: float | None
    """
    Max seconds to wait for the operation to *start*, `None` to wait indefinitely. 
    Please dont use `None` if unnecessary."""
    execution_timeout: float | None
    """
    Max seconds to wait for the operation to *finish*, `None` to wait indefinitely. 
    Please dont use `None` if unnecessary.
    """
    oneway: bool
    """whether the caller wants no reply, if not, the event loop's answer is discarded."""

Attributes

execution_timeout instance-attribute

execution_timeout: float | None

Max seconds to wait for the operation to finish, None to wait indefinitely. Please dont use None if unnecessary.

invokation_timeout instance-attribute

invokation_timeout: float | None

Max seconds to wait for the operation to start, None to wait indefinitely. Please dont use None if unnecessary.

oneway instance-attribute

oneway: bool

whether the caller wants no reply, if not, the event loop's answer is discarded.

hololinked.core.eventloop.operations.ThingExecutionContext

Bases: Struct

Additional context for the thing while executing an operation.

Source code in repo/hololinked/hololinked/core/eventloop/operations.py
class ThingExecutionContext(msgspec.Struct, rename="camel"):
    """Additional context for the thing while executing an operation."""

    fetch_execution_logs: bool
    """whether to collect the `Thing`'s log records during execution and return them with the reply."""

Attributes

fetch_execution_logs instance-attribute

fetch_execution_logs: bool

whether to collect the Thing's log records during execution and return them with the reply.