Skip to content

perf(orchestrator): move export_summary into spawned task in persist_telemetry #787

@AlexMikhalev

Description

@AlexMikhalev

Context

persist_telemetry() calls export_summary().await on the reconciliation tick before spawning. The N+2 read lock acquisitions and full clone happen on the hot path.

Proposed fix

Pass TelemetryStore clone into the spawned task, call export_summary() inside it.

Refs #539 (Gitea), Refs #523

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions