feat: Use new configurable producer API for event bus (#31356)

This involves a breaking-change update to edx-event-bus-kafka 2.0.0.
This commit is contained in:
Tim McCormack
2022-11-28 18:41:35 +00:00
committed by GitHub
parent 1999bf7dc5
commit 279e4d0b67
6 changed files with 12 additions and 10 deletions

View File

@@ -11,10 +11,10 @@ from django.core.cache import cache
from django.db import transaction
from django.dispatch import receiver
from edx_toggles.toggles import SettingToggle
from edx_event_bus_kafka import get_producer
from opaque_keys.edx.keys import CourseKey
from openedx_events.content_authoring.data import CourseCatalogData, CourseScheduleData
from openedx_events.content_authoring.signals import COURSE_CATALOG_INFO_CHANGED
from openedx_events.event_bus import get_producer
from pytz import UTC
from cms.djangoapps.contentstore.courseware_index import (

View File

@@ -301,6 +301,7 @@ CREDENTIALS_INTERNAL_SERVICE_URL = 'http://localhost:18150'
CREDENTIALS_PUBLIC_SERVICE_URL = 'http://localhost:18150'
#################### Event bus backend ########################
EVENT_BUS_PRODUCER = 'edx_event_bus_kafka.create_producer'
EVENT_BUS_KAFKA_SCHEMA_REGISTRY_URL = 'http://edx.devstack.schema-registry:8081'
EVENT_BUS_KAFKA_BOOTSTRAP_SERVERS = 'edx.devstack.kafka:29092'
EVENT_BUS_TOPIC_PREFIX = 'dev'