Skip to content

Commit

Permalink
try #3 to fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Geary-Layne committed Nov 1, 2024
1 parent a5ae43b commit 14b0ae0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/idsse_common/idsse/common/rabbitmq_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,18 @@ def _set_context(context):
var.set(value)


class Consumer(Thread): # pylint disable=too-many-instance-attributes
class Consumer(Thread):
"""
RabbitMQ consumer, runs in own thread to not block heartbeat. A thread pool
is used to not so much to parallelize the execution but rather to manage the
execution of the callbacks, including being able to wait for completion on
shutdown. The start() and stop() methods should be called from the same
thread as the one used to create the instance.
"""

# pylint: disable=too-many-instance-attributes
# Eight is reasonable in this case.

def __init__(
self,
conn_params: Conn,
Expand Down

0 comments on commit 14b0ae0

Please sign in to comment.