fix telemetry send task isolation (#2187)

This commit is contained in:
huanghuoguoguo
2026-05-16 11:26:23 +08:00
committed by GitHub
parent 6fe20c1812
commit ef7a06b0db
2 changed files with 27 additions and 2 deletions

View File

@@ -13,12 +13,11 @@ class TelemetryManager:
await telemetry.send({ ... })
"""
send_tasks: list[asyncio.Task] = []
def __init__(self, ap: core_app.Application):
self.ap = ap
self.telemetry_config = {}
self.send_tasks: list[asyncio.Task] = []
async def initialize(self):
self.telemetry_config = self.ap.instance_config.data.get('space', {})