Skip to content

Commit

Permalink
do not process archived data
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper authored Sep 6, 2024
1 parent d36641a commit 0ec5572
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wis2box-management/wis2box/pubsub/subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def on_message_handler(self, client, userdata, msg):
filepath = f'{STORAGE_SOURCE}/{key}'
if key.startswith(STORAGE_ARCHIVE):
LOGGER.info(f'Do not process archived-data: {key}')
return
# start a new process to handle the received data
while len(mp.active_children()) == mp.cpu_count():
sleep(0.05)
Expand Down

0 comments on commit 0ec5572

Please sign in to comment.