nvalchemi.hooks.Reporter#
- class nvalchemi.hooks.Reporter(*args, **kwargs)[source]#
Protocol for reporting sinks owned by
ReportingOrchestrator.Reporters consume the existing hook context directly. They should not require the orchestrator to construct separate workflow event objects. Reporters may optionally expose
rank_zero_only: boolto request per-reporter rank gating. Reporters that run distributed collectives must exposerequires_all_ranks: boolso orchestrator-level rank gating does not skip nonzero ranks before a collective. Reporters may also implement__enter__,__exit__, orclosefor resource lifecycle management.- report(ctx, stage, state)[source]#
Consume one reporting event.
- Parameters:
ctx (HookContext) – Workflow hook context.
stage (Enum) – Hook stage being reported.
state (ReportingState) – Shared reporting state for the orchestrator run.
- Return type:
None