Skip to content

Commit

Permalink
ACU: fix bug where empty blocks were pushed to feed
Browse files Browse the repository at this point in the history
This wasn't causing any trouble other than lots of log messages in
influxpublisher.
  • Loading branch information
mhasself committed Nov 3, 2023
1 parent 496d07a commit 8844a61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion socs/agents/acu/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,9 @@ def monitor(self, session, params):
del new_influx_blocks[k]

for block in new_influx_blocks.values():
self.agent.publish_to_feed('acu_status_influx', block)
# Check that we have data (commands and corotator often don't)
if len(block['data']) > 0:
self.agent.publish_to_feed('acu_status_influx', block)
influx_blocks.update(new_influx_blocks)

# Assemble data for aggregator ...
Expand Down

0 comments on commit 8844a61

Please sign in to comment.