ezmsg.dashboard.backend.services.graph_context_service#
Classes
- class GraphContextLifecycleService(*, graph_address=None, auto_start=None, heartbeat_seconds=10.0, queue_size=512, graph_context_factory=<class 'ezmsg.core.graphcontext.GraphContext'>)[source]#
Bases:
object- Parameters:
- __init__(*, graph_address=None, auto_start=None, heartbeat_seconds=10.0, queue_size=512, graph_context_factory=<class 'ezmsg.core.graphcontext.GraphContext'>)[source]#
- stream_tap(*, topic, mode, max_columns, window_seconds=2.0)[source]#
Open (or join) a tap on
topicfor the duration of the context.Not
async def: callers use it asasync with, and returning the context manager directly means a caller that never enters it has not already taken a reference on the tap.- Return type:
- Parameters:
- class GraphServiceProtocol(*args, **kwargs)[source]#
Bases:
Protocol- async set_profiling_trace_control(*, process_id, enabled, publisher_endpoint_id, publisher_topic, subscriber_topic, metrics, sample_mod, ttl_seconds, timeout)[source]#
- async event_envelopes(*, topology_after_seq, settings_after_seq, profiling_interval, profiling_max_samples)[source]#
- __init__(*args, **kwargs)#
Exceptions
Bases:
RuntimeErrorRaised when GraphContext lifecycle service is not currently active.
- exception ProfilingTraceControlError[source]#
Bases:
RuntimeErrorRaised when profiling trace control cannot be applied.
- exception SettingsPatchError[source]#
Bases:
RuntimeErrorRaised when a settings patch request fails in GraphContext.