COURSE_ENROLLMENT_CREATED signal fired twice for a single enrollment

Abierto
#39,002 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python
Área
backend

Línea de trabajo

Reproduce la inscripción a través de la UI o de la API de inscripción, registrando event_metadata.id para COURSE_ENROLLMENT_CREATED. Rastrea las rutas de emisión de la señal en edx-platform y confirma que se ha completado cuando una acción de inscripción produce exactamente un evento con un único id distinto.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Description

On a local tutor setup, enrolling one user into one course results in COURSE_ENROLLMENT_CREATED being emitted twice, each with a distinct event_metadata.id. This was observed via a downstream receiver (webhook forwarder) that logged two separate deliveries for what should be a single enrollment action:

event_type event_id timestamp
org.openedx.learning.course.enrollment.created.v1 b9fed4e4-9bb3-11f1-b47b-8665a19c74ef Aug. 19, 2026, 9:52 a.m.
org.openedx.learning.course.enrollment.created.v1 b9de5ffc-9bb3-11f1-91fa-8665a19c74ef Aug. 19, 2026, 9:52 a.m.

Since the two events have different event_metadata.id values, this isn't a case of a receiver being connected twice (that would redeliver the same event id) — the event is being emitted twice by edx-platform itself for the same enrollment action.

Steps to reproduce

  1. On a dev setup, enroll a single user in a single course (via UI or enrollment API).
  2. Have a receiver connected to COURSE_ENROLLMENT_CREATED (e.g. logging the metadata.id of each call).
  3. Observe two invocations with different event_metadata.id for the same enrollment.

Expected behavior

One enrollment action should emit exactly one COURSE_ENROLLMENT_CREATED event.

Actual behavior

Two events are emitted with distinct ids, seconds apart, for the same user/course enrollment.

Environment

  • tutor 22.0.0 openedx verawood.1
  • Open edX Events: openedx_events.learning.signals.COURSE_ENROLLMENT_CREATED
Lenguaje dominante
Python
Estrellas
8.2k
Forks
4.4k
Merge medio
2 d 10 h
PR fusionados (30 d)
40

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openedx/openedx-platform

Todos los issues de openedx/openedx-platform

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.