visch
05/01/2025, 3:16 PMasync def _outstream_handler_tap(self, handle, name, procname, queue):
data = "initial"
i = 0
queue_max_size = queue.maxsize
while data:
data = await handle.readline()
line = data.decode()
if data:
await queue.put(line)
i = i + 1
if (i >= (queue_max_size*.1)):
i = 0
if (queue.qsize() >= queue_max_size*.1):
<http://logging.info|logging.info>(f"Queue Size is >10% currently at: {queue.qsize()}. Max Queue size is: {queue_max_size}. Target is behind")
I'm having some back pressure issues and haven't dove in, but it'd be nice to know if the target wasn't keeping up with the tapMatt Menzenski
05/06/2025, 12:20 AMvisch
05/06/2025, 12:31 PMvisch
05/06/2025, 12:33 PMMatt Menzenski
05/06/2025, 3:57 PM