Skip to content

Commit

Permalink
Call cancel_join_thread on multiprocessing queue to allow shard proce…
Browse files Browse the repository at this point in the history
…ss to shutdown since it was not creater of this queue
  • Loading branch information
Nathan Crowe committed Jul 30, 2024
1 parent 4f8c026 commit f8a2a52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/kinesis/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def loop(self):

def end(self):
"""End of the main loop"""
self.record_queue.cancel_join_thread()
self.error_queue.cancel_join_thread()
log.info("Shard reader for %s stoping", self.shard_id)


Expand Down

0 comments on commit f8a2a52

Please # to comment.