Skip to content

Commit

Permalink
fix: use async events router by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Nov 2, 2023
1 parent 9574884 commit a76dc9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions event_routing_backends/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def plugin_settings(settings):
],
'backends': {
'xapi': {
'ENGINE': 'event_routing_backends.backends.events_router.EventsRouter',
'ENGINE': 'event_routing_backends.backends.async_events_router.AsyncEventsRouter',
'OPTIONS': {
'processors': [
{
Expand Down Expand Up @@ -194,7 +194,7 @@ def plugin_settings(settings):
],
"backends": {
"caliper": {
"ENGINE": "event_routing_backends.backends.events_router.EventsRouter",
'ENGINE': 'event_routing_backends.backends.async_events_router.AsyncEventsRouter',
"OPTIONS": {
"processors": [
{
Expand Down
6 changes: 4 additions & 2 deletions event_routing_backends/tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def test_common_settings(self):
Test common settings
"""
common_settings.plugin_settings(settings)
self.assertIn('event_bus', settings.EVENT_TRACKING_BACKENDS)
self.assertIn('xapi', settings.EVENT_TRACKING_BACKENDS)
self.assertIn('caliper', settings.EVENT_TRACKING_BACKENDS)
self.assertIn('edx.course.enrollment.activated', settings.EVENT_TRACKING_BACKENDS_BUSINESS_CRITICAL_EVENTS)
self.assertFalse(settings.CALIPER_EVENTS_ENABLED)
self.assertFalse(settings.CALIPER_EVENT_LOGGING_ENABLED)
Expand All @@ -32,7 +33,8 @@ def test_devstack_settings(self):
Test devstack settings
"""
devstack_settings.plugin_settings(settings)
self.assertIn('event_bus', settings.EVENT_TRACKING_BACKENDS)
self.assertIn('xapi', settings.EVENT_TRACKING_BACKENDS)
self.assertIn('caliper', settings.EVENT_TRACKING_BACKENDS)
self.assertIn('edx.course.enrollment.deactivated', settings.EVENT_TRACKING_BACKENDS_BUSINESS_CRITICAL_EVENTS)
self.assertFalse(settings.CALIPER_EVENTS_ENABLED)
self.assertFalse(settings.CALIPER_EVENT_LOGGING_ENABLED)
Expand Down

0 comments on commit a76dc9c

Please sign in to comment.