Skip to content

Commit

Permalink
Merge pull request #57 from openedx/diana/monitoring-consumption
Browse files Browse the repository at this point in the history
feat: Add monitoring to consumption tasks.
  • Loading branch information
dianakhuang authored Oct 7, 2022
2 parents d09fccf + 3812e04 commit 75020df
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ Unreleased

*

[1.1.0] - 2022-10-06
********************

Changed
=======

* Added monitoring for consumption tasks.

[1.0.0] - 2022-10-03
********************

Expand Down
2 changes: 1 addition & 1 deletion edx_event_bus_kafka/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
from edx_event_bus_kafka.internal.consumer import KafkaEventConsumer
from edx_event_bus_kafka.internal.producer import KafkaEventProducer, get_producer

__version__ = '1.0.0'
__version__ = '1.1.0'
2 changes: 2 additions & 0 deletions edx_event_bus_kafka/internal/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from django.conf import settings
from django.core.management.base import BaseCommand
from django.dispatch import receiver
from edx_django_utils.monitoring import background_task
from edx_toggles.toggles import SettingToggle
from openedx_events.event_bus.avro.deserializer import AvroSignalDeserializer
from openedx_events.learning.data import UserData
Expand Down Expand Up @@ -114,6 +115,7 @@ def consume_indefinitely(self):
self.consumer.close()
logger.info("Committing final offsets")

@background_task()
def process_single_message(self, msg):
"""
Emit signal with message data
Expand Down

0 comments on commit 75020df

Please sign in to comment.